MZ Several issues with state icons displaying [battle and main menu]

Hello folks! I've been scouring the Googles for the answers to my state icon display woes but haven't been able to find anything to help me out, short of drastically altering what plugins I use to inject a new battle HUD into my game [maybe for my next game, but for this one I'm trying to keep it simple, haha].

Here are the issues I'm having with state icon displays in the battle HUD:
Spoiler
State Icons Help.png
On the right side, all of the state icons are bound to the same "slot," and I want to have them spread out into the empty, unused space to the right. Enemies get one slot over their heads, and both of these display "slots" rapid-fire rotate through ALL the states the actor/enemy has. Further, no state icons show up over, under, or otherwise near the actor battler sprite.

I'm using a bunch of plugins, and cannot for the life of me figure out how to make more state icons visible in any of the plugins or the base code.

In the menu, this goofy nonsense happens, probably because the menu plugin I'm using [the free VisuStella menu core thing] gives the page so much more breathing room:
Spoiler
State Icons Help 2.png

Have any insights on how I can spread out these icons and rescue my sanity?
Even if you want to forgo the plugins, this is a scripting question, so:

I've moved this thread to JavaScript/Plugin Support. Thank you.

Without plugins, you'd need to override the parts of the core scripts that handle drawing icons on each of those windows. Wild guess (untested):
Spoiler: plugin code
JavaScript:
/*:
 * @target MZ
 * @plugindesc Make status icons fill the available space?
 */
(alias => {
  Window_StatusBase.prototype.drawActorIcons = function(actor, x, y, width, ...args) {
    alias.call(this, actor, x, y, width || this.innerWidth - x, ...args);
  };
})(Window_StatusBase.prototype.drawActorIcons);
I.e. "if no width is specified, use the distance from the current point to the right-hand window edge". By default that value is 144 px, i.e. 4 full icons (4 * 32 = 128 px).
I imagine this might allow for overflow in some default layouts, though, e.g. battle status. 😴

Otherwise it will be necessary for people to know exactly which plugins you are using to provide the changed layouts in order to directly help you out here. I'm guessing they are:
Otherwise it will be necessary for people to know exactly which plugins you are using to provide the changed layouts in order to directly help you out here.
Ah, yeah, sorry about that! That's what I get for panic-posting at 5 AM instead of sleeping on it like a sane person 😔

Here's the full list of plugins I use and have active, with indicators on the ones I think are affecting the state icon spreading [or lack thereof]:
Spoiler: Plugins
State Icons Help 3.png

Without plugins, you'd need to override the parts of the core scripts that handle drawing icons on each of those windows. Wild guess (untested):
I'm down to try untested code, why not! 😀 The only thing is that I'm not exactly sure where to put it. Where would I put it? I'm guessing the "managers" file? Also, do I need to put it in a specific spot on the page or can I just drop it in the bottom [or am I editing existing code]?
Ah, yeah, sorry about that! That's what I get for panic-posting at 5 AM instead of sleeping on it like a sane person 😔

Here's the full list of plugins I use and have active, with indicators on the ones I think are affecting the state icon spreading [or lack thereof]:
Spoiler: Plugins


I'm down to try untested code, why not! 😀 The only thing is that I'm not exactly sure where to put it. Where would I put it? I'm guessing the "managers" file? Also, do I need to put it in a specific spot on the page or can I just drop it in the bottom [or am I editing existing code]?
Paste the code in a new text file, save it as whatever.js in your project's js/plugins folder, load it in to the plugin manager, boom you have yourself a new plugin. (yes, it's that simple)
Paste the code in a new text file, save it as whatever.js in your project's js/plugins folder, load it in to the plugin manager, boom you have yourself a new plugin. (yes, it's that simple)
So easy! Unfortunately it didn't work 🙁 No errors, just didn't do the thing.
Well, first, Visustella doesn't really allow you to modify too much the alignment of the state icons in the Battlestatus window, the most you can do is change the placement with offset parameters that they have in the BattleCore plugin.

Second, the code snippet that caethyril gave you does't really affect the state icons in the battlestatus window, it affects only the placement in the menus at best, that is the status shown in the main menu window, or the skill window or the status window.

Battlestatus window uses a method called placeStateIcon which somehow it's used as the refresh for the battlestatus window. This method only draws one icon at a time.

Like you I have tried many times to change it so it shows state icons next to each other instead of all of them in the same location, but so far I haven't figured a way to do so, since it uses parts of the code I haven't fully understand.
@JamieSabriel - well, from that screenshot I think the relevant plugins are probably all VisuStella's:
  • Battle Core - battle status window
  • Main Menu Core - pause menu (and item/skill menus?)
  • Elements & Status Core - status menu
All I found in those was this plugin parameter setting:
  • Main Menu Core -> List Style Settings -> (style)
Each of them have a drawActorIcons line that could be edited to add a fourth parameter (maximum width) and adjust the x position as needed. However, I think that's only for the pause menu (and skill/item?), not the battle or status screens. 😔

There are a couple of links near the top of VisuStella's itch page for contacting them. That way you should be able to get a definitive answer as to whether there's a way to customise things. If not, at least it'll make them aware that it's something people want. 👋
Well, first, Visustella doesn't really allow you to modify too much the alignment of the state icons in the Battlestatus window, the most you can do is change the placement with offset parameters that they have in the BattleCore plugin.
Yeah, that part I figured out - what you see in my attempts is an offset of almost 600 pixels so the icons aren't on top of the actor's face 😅
Battlestatus window uses a method called placeStateIcon which somehow it's used as the refresh for the battlestatus window. This method only draws one icon at a time.
Disaster, I weep
There are a couple of links near the top of VisuStella's itch page for contacting them. That way you should be able to get a definitive answer as to whether there's a way to customise things. If not, at least it'll make them aware that it's something people want.
Ooohhh good plan! I couldn't figure out how to get in touch with them, I searched Google for the Discord but it didn't come up 😅

Either way I'll bang down their door and beg for help get in touch with them and see what they say 😅
Yeah, that part I figured out - what you see in my attempts is an offset of almost 600 pixels so the icons aren't on top of the actor's face 😅

Disaster, I weep

Ooohhh good plan! I couldn't figure out how to get in touch with them, I searched Google for the Discord but it didn't come up 😅

Either way I'll bang down their door and beg for help get in touch with them and see what they say 😅
Hey! I know this was a bit ago, did you ever figure out how to space out the states? I've also ran into this problem.

Original thread: https://forums.rpgmakerweb.com/threads/several-issues-with-state-icons-displaying-battle-and-main-menu.145786/