Altering Yanfly's Battle Status Window

Hey everyone, I wanted to see if anyone could help me alter Yanfly's Battle Status Window plugin to make one small change.

In the combat status window, it shows an icon in the top left of each face with what action the actor chose on their turn. I want to remove this, since I'm using Yanfly's Standard Turn Battle and don't need that displayed - plus it is a little buggy with that system as well.

If anyone could help with this it would be incredibly helpful. Thanks! 🙂
Bumping this in case anyone has any ideas to help!
Hello!

I think I found the solution by commenting out "icon = actor.currentAction().item().iconIndex || Yanfly.Icon.NoAction;" (in the .js file itself, not the parameters).

It should look like this:
Screenshot_374.png

If you want the name to move all the way to the left (where the icon was), look for this code:
"this.drawActorName(actor, rect.x + iw + 4, rect.y, rect.width);"
and remove "+ iw"

Which should look like this: (I made a copy of the unedited line just to be safe)
Screenshot_375.png

I have no experience with javascript whatsoever, but it worked for me, haha.

I hope this helps!
Hey thanks so much for replying!

So I set things up in the .js file as you suggested...however, although the text is now to the left hand side (thanks!), the icon box is still present. It doesn't seem to be showing the action the actors are taking, but is simply a blank box that the text is positioned over. Is there a way to remove that box as well?
You just need to clear out the whole drawActorActionIcon function. Also I would suggest that you never edit any core files or plugin files directly, always copy the function you wanna edit over to a new .js file and import that as a plugin and place it below the original one. That's safer in case of breaking something and when you would update the original file all changes would be lost or you have to manually put them in the new version. With just a separate js file, it's much easier.

So just copy-paste this into a new .js file and place it below Yanfly's plugin:
Code:
Window_Base.prototype.drawActorActionIcon = function (actor, wx, wy) {};

That other edited function can go into this new .js file as well. 🙂
Thanks so much! That line did exactly what I needed it to! 🙂

That other edited function can go into this new .js file as well. 🙂

I could not figure out how to get this to work though. Did you mean inserting the code that moves the name to the left? When I added in what @CharacterDesignist posted, it did not work. I'm probably just coding something wrong. However, editing the Yanfly file with that change and then making a new .js file for your line as you suggested did work out perfectly. Do you think that's okay? I know you mentioned not editing the plugins .js file so if there is a more streamlined/less hazardous way to do it, i\I would prefer that.

Hopefully I'm explaining it right.
In case of the other edit, you would have to copy over the whole function (drawBasicArea) and not only that single line. 🙂
Ahhh okay I see now. Cool! Well this completely resolves my issue now, thanks so much for helping out!
Oh, now I learned something new as well.
I'm really no good at coding, so I'm glad @waynee95 could help you out!
You both did! Thanks so much!

Original thread: https://forums.rpgmakerweb.com/threads/altering-yanflys-battle-status-window.84216/