RMMZ Last skill/item in menu gets cut off.

BloodletterQ

Chaotic Neutral Assassin
Veteran
Joined
Aug 15, 2012
Messages
1,535
Reaction score
1,179
First Language
English
Primarily Uses
N/A
Untitled.png
Regardless of what plugins I use, modifying default rmmv_windows.js's Window_BattleSkill seems to cut off the last skill as seen in the above screenshot. It calls upon Window_SkillList but I'm not really sure which line of code I'm supposed to modify so that all skills (or items) would show up correctly.
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,227
Reaction score
1,634
First Language
EN
Primarily Uses
RMMZ
I'm guessing you changed the height of the window after it was initialised? The window contents sprite does not automatically scale to the new size, so try recreating it, e.g.
JavaScript:
this.height = this.fittingHeight(8);  // height changed
this.createContents();  // recreate contents
this.refresh();  // redraw contents
 

BloodletterQ

Chaotic Neutral Assassin
Veteran
Joined
Aug 15, 2012
Messages
1,535
Reaction score
1,179
First Language
English
Primarily Uses
N/A
@caethyril I would put that in my Window_BattleSkill, correct?

EDIT: Never mind, you are a genius! Works with items too.
 
Last edited:

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,227
Reaction score
1,634
First Language
EN
Primarily Uses
RMMZ
:kaoswt: Not sure exactly what you mean by that...

Just try adding the createContents and refresh lines immediately after whatever changes you've made to the window. :kaohi:


Edit: oh I didn't see your edit earlier, yay! Happy RPG Making~ :kaojoy:
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

I'm moving on from RMXP finally. I've been stuck in a difficult decision between XP and MZ, and I've given up and moved on to MZ. Overall I'm really liking it, I wish tilesets were easier to setup like XP, but it's actually not that bad!
Have you ever gone full 'Ship of Theseus' while frankenspriting? Because I just did.
I saw my new eye doctor today, he reminds me of Satoru Iwata for some reason
I've been using a modified version of a script called Multiple Messages. It makes my text boxes look like a Mario & Luigi game! There is something about it that bothers me a little bit, but I shouldn't worry about that now.

Side note, Mist's walking animation is almost perfectly in sync with Loose Yourself by Eminem.
Starting work on some stuff for the community. Hopefully it will be fun, and useful to somebody.

Forum statistics

Threads
107,773
Messages
1,032,040
Members
139,915
Latest member
nick7626
Top