Changing window height?

Silenity

Veteran
Veteran
Joined
Dec 17, 2013
Messages
677
Reaction score
271
First Language
English
Primarily Uses
RMMV
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.


 
Last edited by a moderator:

waynee95

Inactive
Veteran
Joined
Jul 2, 2016
Messages
682
Reaction score
598
First Language
German
Primarily Uses
RMMV
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.
 

Silenity

Veteran
Veteran
Joined
Dec 17, 2013
Messages
677
Reaction score
271
First Language
English
Primarily Uses
RMMV
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!
 
Last edited by a moderator:

waynee95

Inactive
Veteran
Joined
Jul 2, 2016
Messages
682
Reaction score
598
First Language
German
Primarily Uses
RMMV
Okay, for me it works fine. :o


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! :)
 
Last edited by a moderator:

Silenity

Veteran
Veteran
Joined
Dec 17, 2013
Messages
677
Reaction score
271
First Language
English
Primarily Uses
RMMV
Okay, for me it works fine. :o


~


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!







 
Not signed in




 
 
Last edited by a moderator:

waynee95

Inactive
Veteran
Joined
Jul 2, 2016
Messages
682
Reaction score
598
First Language
German
Primarily Uses
RMMV
No problem! :)


Looks nice!
 

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top