[Ace] Shifting BattleStatusAid stuff in Yanfly Battle Engine

ZServ

Veteran
Veteran
Joined
Jun 16, 2014
Messages
260
Reaction score
71
Primarily Uses
Hey all, got an annoying.. I hesitate to call it a bug, but circumstance, nonetheless. My project has two party members. I'm adjusting the UI accordingly. See here:


exa1.png


But, Yanfly's Battle Engine has Window_BattleStatusAid inherit its alignments from Window_BattleStatus, which is how I've adjusted the UI.


exa2.png


At first glance, nothing seems wrong. But, if you'll look at the right side of the BattleStatusAid window, you'll see that it's drawing the Name, HP, and TP of the user using the same offsets as Window_BattleStatus.


My initial thought is to do an if check to see if it's Window_BattleStatusAid, but I'm not sure how to do that. Here is a link to my edited Yanfly Battle Engine. Perhaps I've just gone about editing the draw_item section wrong? My modifications are between lines 1806 and 1847. Any assistance resolving this would be greatly appreciated. I'd even be happy just getting pointed in the right direction!
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
You can modify the draw_item method directly in the Window_BattleStatusAid class to have a different drawing method there.


So, just copy the draw_item method from the Window_BattleStatus class into Window_BattleStatusAid, and modify what you want there.


Your changes there will only affect the Window_BattleStatusAid class, so there is no need to check if it is that class or not this way.
 

ZServ

Veteran
Veteran
Joined
Jun 16, 2014
Messages
260
Reaction score
71
Primarily Uses
That seems so obvious in hindsight. I thought that because the refresh call was using draw_item(@status_window.index) that it'd just be a huge issue. But, since it was redefined by that, no problems. Interesting. Thank you very much, Sixth. You continue to save me from undue stress. :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,062
Members
137,575
Latest member
akekaphol101
Top