I'm using a lot of states in my game in RpgMakerMV so I've run into the problem of not having enough space in the UI for all of the states applies to my party members. Currently I have the Show All Icons plugin by Jason "Wavelength" Commander installed, which shrinks down the state icons to show more when there are more than three. I'm wondering if there's a way to expand the space given to player states, though. I've already moved over the HP and MP bars to give more room for the states, but it didn't make any more show up.
MV Changing the space allowed for actor's states
RPG Maker MV SupportThis isn't a proper answer to your question, but as a temporary measure you could try thinking about what states you need to show the most, via the "Priority" setting in the database. For instance, you could give very dangerous states imposed during battle higher priority than states that continue outside battles. I tend to give harmful states a higher priority than states that buff the actor, because the player might need to be aware that they need to do something urgently.
Not sure if it's your problem, but even with that plugin I think it limits the amount of icons that can appear. Like there's the line:
So if your width is 144, _iconWidth is 36 and scale is 2, then I think 16 is the max number of icons that get drawn.
If you want to increase it, I guess you can just use allIcons() and then set your own limit for the max size, so it doesn't overflow where you don't want it to.
EDIT: Icon width should be 32, instead of 36.
EDIT 2: Also, there might be other stuff that controls how many are drawn.
EDIT 3: The width isn't 144, check below reply.
var icons = actor.allIcons().slice(0, Math.floor(width / (Window_Base._iconWidth / (scaler * scaler))));So if your width is 144, _iconWidth is 36 and scale is 2, then I think 16 is the max number of icons that get drawn.
If you want to increase it, I guess you can just use allIcons() and then set your own limit for the max size, so it doesn't overflow where you don't want it to.
EDIT: Icon width should be 32, instead of 36.
EDIT 2: Also, there might be other stuff that controls how many are drawn.
EDIT 3: The width isn't 144, check below reply.
It sounds like the main problem is that the width in that line is not actually the width available.
Hmmm, I tested it out just for "fun", with 18 states. Without modifications it drew 9 icons. When I changed the line to not slice it, it drew all 18 icons. But of course that overflows on the other actor's area. If they make more space by moving gauges etc, they need to modify how it draws the icons.
EDIT: Earlier I was left wondering where the amount of icons drawn (9) was coming from, so I had to come back and log the value of width on the console. It gave 75 in my case, so yeah, putting that into the formula gives: Math.floor(75 / (32 / (2 * 2))) -> 9
EDIT2: Oh, and if moved the gauges to make room for more icons, I think you can just manually give the row size in the code, like: row_size = 8;
So take away the slice from
EDIT: Earlier I was left wondering where the amount of icons drawn (9) was coming from, so I had to come back and log the value of width on the console. It gave 75 in my case, so yeah, putting that into the formula gives: Math.floor(75 / (32 / (2 * 2))) -> 9
EDIT2: Oh, and if moved the gauges to make room for more icons, I think you can just manually give the row size in the code, like: row_size = 8;
So take away the slice from
var icons = actor.allIcons() (change it in the else branch) and change the row_size line to that row_size = 8; (you can also give a fixed value to the slice, to set the limit of the shown states, and increase that row_size if you have more space).Ok great that it works.
I guess you can post the edit, at least if you link back to the original plugin thread.
I guess you can post the edit, at least if you link back to the original plugin thread.
Original thread: https://forums.rpgmakerweb.com/threads/changing-the-space-allowed-for-actors-states.180619/