Changing window height?

I'm using an edited version of Yanfly's Save Core and I'm trying to change the height of the help description window.


Here is the edited plugin: http://pastebin.com/raw/J1Pt42zN


Here's what it looks like in-game:


I'd just like the help description to be the same size as the File and Load/Save/Delete windows. It's only one line of text so it doesn't need to be so big.


Also, how to center the File 1, File 2, etc. commands? So they aren't all the way to the left.


NRH5TXK.png
Scene_File.prototype.createHelpWindow = function() {
this._helpWindow = new Window_Help(2); //here
this._helpWindow.setText(Yanfly.Param.SaveHelpSelect);
this.addWindow(this._helpWindow);
};


The parameter of the Window_Help is the num of lines the window should have, so just change it to 1.
Scene_File.prototype.createHelpWindow = function() {
this._helpWindow = new Window_Help(2); //here
this._helpWindow.setText(Yanfly.Param.SaveHelpSelect);
this.addWindow(this._helpWindow);
};


The parameter of the Window_Help is the num of lines the window should have, so just change it to 1.





 






 







 

Strange. I did that but it made it look wacky. One sec! Let me test some things!


I used Yami's Window Identifier and it looks like Yanfly's Debugger adds an invisible window. So it was somehow showing up whenever I changed the height of the help window to 1.


Thanks!
Okay, for me it works fine. 😮


For centering the File1, File2, ... commands you can try something like this:


Window_SavefileList.prototype.drawItem = function(index) {
var id = index + 1;
var valid = DataManager.isThisGameFile(id);
var rect = this.itemRect(index);
this.resetTextColor();
//if (this._mode === 'load') this.changePaintOpacity(valid);
this.changePaintOpacity(valid);
var icon = valid ? Yanfly.Param.SaveIconSaved : Yanfly.Param.SaveIconEmpty;
//this.drawIcon(icon, rect.x + 2, rect.y + 2); old
this.drawIcon(icon, rect.x + rect.width/2 - 70, rect.y + 2); //modified here
// this.drawFileId(id, rect.x + Window_Base._iconWidth + 4, rect.y); old
this.drawText(TextManager.file + ' ' + id, rect.x, rect.y, rect.width, 'center'); //modified here
};


Btw, I really like your new layout for the save scene! 🙂
Okay, for me it works fine. 😮


~


For centering the File1, File2, ... commands you can try something like this:


Btw, I really like your new layout for the save scene! 🙂





 






 







 



You're a king mate! Thanks a ton! Here's how it looks now until I get the time to make a custom background!

Spoiler
69e04c873b53de6b245d72eb49ce1a2c.png






 
Not signed in




 
No problem! 🙂


Looks nice!
No problem! 🙂


Looks nice!





 



A bit updated now!


3c2068da8a04a0ee4ae3b0b160370dae.jpg

Original thread: https://forums.rpgmakerweb.com/threads/changing-window-height.71222/