MV Adjusting Yanfly Skill Learn Windows SOLVED

Hello, I am looking to modify the windows in the Yanfly Skill Learn scene.

This is what they currently look like:

1711399847384.png


and this is what I am hoping to change them to:

1711400139895.png



I was messing around a bit in Window_SkillLearnCommand, where this line in particular stood out:
Window_SkillLearnCommand.prototype.numVisibleRows = function() {
return 5;
};

However increasing this number expands both the actor stat window and reduces the window below, making it look instead like this:

1711400061392.png


Clearly the class list and the actor status window are joined together, but I really don't know exactly how to change this to make it look like I am hoping.

Any and all help is welcome and appreciated.
I used SRD Super Tools Engine to rearrange the size of my windows in MV.

first go to the definition for Scene_LearnSkill.createSkillLearnWindow() and change the dimensions to
Code:
  var wx = this._statusWindow.x;
  var wy = this._statusWindow.y + this._statusWindow.height;
  var ww = Graphics.boxWidth / 2 - this._commandWindow.width;
  var wh = Graphics.boxHeight - wy;

then go to the definition for Window_SkillLearnCommand.numVisibleRows() and change its return value to whatever is needed to cover the remaining height of the screen. For me its 16, but itll be higher for you

last, go to to the definition for Scene_LearnSkill.createStatusWindow() and change wh to 180 or whatever height you feel is comfortable. if you want to grab the old height, open up the menu ingame and run console.log on "SceneManager._scene._commandWindow.height" while the rows are still set to whatever they were

The status window here is created after the Skill Learn Command Window and references its height in its own. you could adjust it to be dynamic by changing the order the windows are made so that you can avoid referencing properties of uninstantiated windows, or by creating a new unused command window to be able to just reference its height, but predefining it and telling you what you can do instead is easier 😛.
Awesome, thank you two so much! I was considering trying SRD's plugin, but I would rather learn how to modify the windows by hand first. Robro, that is exactly what I was looking for and your help cannot be understated!

first go to the definition for Scene_LearnSkill.createSkillLearnWindow() and change the dimensions to
Code:
  var wx = this._statusWindow.x;
  var wy = this._statusWindow.y + this._statusWindow.height;
  var ww = Graphics.boxWidth / 2 - this._commandWindow.width;
  var wh = Graphics.boxHeight - wy;

then go to the definition for Window_SkillLearnCommand.numVisibleRows() and change its return value to whatever is needed to cover the remaining height of the screen. For me its 16, but itll be higher for you

last, go to to the definition for Scene_LearnSkill.createStatusWindow() and change wh to 180 or whatever height you feel is comfortable. if you want to grab the old height, open up the menu ingame and run console.log on "SceneManager._scene._commandWindow.height" while the rows are still set to whatever they were

The status window here is created after the Skill Learn Command Window and references its height in its own. you could adjust it to be dynamic by changing the order the windows are made so that you can avoid referencing properties of uninstantiated windows, or by creating a new unused command window to be able to just reference its height, but predefining it and telling you what you can do instead is easier .

Ok, I just followed these instructions (and put everything in the correct position this time!), and it works! Now to just modify it a bit and make it look all sleek and clean. Thank you very much Robro, I think I can use this set of instructions to modify some similar windows too, such as the skill menu scene.

1711424812502.png


Not bad looking if I do say so myself! 😅

Now I do have one more question, which is mostly a matter of aesthetics, and which can probably be solved crudely, but for the sake of doing things correctly, how would I increase the window height for the class list down by say, 6-8 pixels or whatever it is lacking from meeting evenly with the other windows? Or better yet, to have the height of this window match the height of the others?

I suppose I could increase the top rows height by several pixels which should align everything else, but I also kind of feel like that is cheating. Going to go ahead and do that for now I suppose.

update:

Tried playing around with SRD_SuperToolsEngine as suggested by Silenity, and WOW, what an incredible tool! Cannot believe I have been sleeping on this for so long. Took all but a minute to rearrange the menu and put in the finishing touches. I plan on using SRD_StatUpgrade anyways in combination with ICFSoft custom params, and the StatUpgrade plugin requires SuperTools, so may as well get used to working with it.

Perfection!

1711428286072.png



SRD stat upgrade + ICFSoft custom params works like a charm too. Over half of these are custom params, not just database name edits:awink:

1711429810297.png
how would I increase the window height for the class list down by say, 6-8 pixels or whatever it is lacking from meeting evenly with the other windows?
right. shouldnt have assumed that rows would have been sized to conveniently fit for you. easiest way to go about it would be to overwrite the method the window automatically inherits and uses to set its height.

Code:
Window_SkillLearnCommand.prototype.windowHeight = function() {
  return Graphics.boxHeight - SceneManager._scene._helpWindow.height;
};
That would make it the rest of the screen.

Perfection!
The menus are looking good. I havent used super tools, but i remember seeing the video and thinking that its an incredibly handy thing to have

Original thread: https://forums.rpgmakerweb.com/threads/adjusting-yanfly-skill-learn-windows-solved.167174/