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.
MZ Last skill/item in menu gets cut off.
Javascript/Plugin SupportRegardless 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.
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
@caethyril I would put that in my Window_BattleSkill, correct?
EDIT: Never mind, you are a genius! Works with items too.
EDIT: Never mind, you are a genius! Works with items too.
Just try adding the
createContents and refresh lines immediately after whatever changes you've made to the window. 👋Edit: oh I didn't see your edit earlier, yay! Happy RPG Making~ 😂
Original thread: https://forums.rpgmakerweb.com/threads/last-skill-item-in-menu-gets-cut-off.130670/