Need help with a couple of things. Gaps in windows and Back Button Position.

drakiyth

Villager
Member
Joined
Dec 21, 2012
Messages
9
Reaction score
2
Primarily Uses
So I have a couple of things that are really bugging me right now in a project I am working on:

#1: Gaps in windows. Picture shows what I mean. How do you close these up?

#2: I have no earthly idea how to move this thing with javascript. As you can see in my testing screen it looks horrid right in the center like that. I think it would be good to have a button under items called back or something but if I can move that button near the commands that would be efficient too. (like the picture shows) Can somebody please give me an idea of what I need?

[Pictures deleted due to project canceled]
 
Last edited:

coyotecraft

Mythographer
Veteran
Joined
Mar 13, 2012
Messages
404
Reaction score
235
First Language
English
Primarily Uses
N/A
#1 you can change in rmmz_windows.js
under Window_PartyCommand.prototype.setup, you'd just add this.height = some number.
JavaScript:
Window_PartyCommand.prototype.setup = function() {
    this.refresh();
    this.forceSelect(0);
    this.activate();
    this.height = 115; // added here
    this.open();
};

#2 looks like you can change it in rmmz_scenes.js
under Scene_Battle.prototype.createCancelButton
JavaScript:
Scene_Battle.prototype.createCancelButton = function() {
    this._cancelButton = new Sprite_Button("cancel");
    this._cancelButton.x = Graphics.boxWidth - this._cancelButton.width - 4;
    this._cancelButton.y = this.buttonY();
    this.addWindow(this._cancelButton);
};
The x default position should sit it just 4 px off the right edge of the screen. But based on your screenshot, I'm assuming you're using some kind of plugin that is overwriting this. You might have to go through the plugins and search for "_cancelButton.x"

Otherwise, you should be able to just set this._cancelButton.x = whatever.
Maybe a hard number like 600 (I have no idea what your screen dimensions are)
 
Last edited:

drakiyth

Villager
Member
Joined
Dec 21, 2012
Messages
9
Reaction score
2
Primarily Uses
#1 you can change in rmmz_windows.js
under Window_PartyCommand.prototype.setup, you'd just add this.height = some number.
JavaScript:
Window_PartyCommand.prototype.setup = function() {
    this.refresh();
    this.forceSelect(0);
    this.activate();
    this.height = 115; // added here
    this.open();
};

#2 looks like you can change it in rmmz_scenes.js
under Scene_Battle.prototype.createCancelButton
JavaScript:
Scene_Battle.prototype.createCancelButton = function() {
    this._cancelButton = new Sprite_Button("cancel");
    this._cancelButton.x = Graphics.boxWidth - this._cancelButton.width - 4;
    this._cancelButton.y = this.buttonY();
    this.addWindow(this._cancelButton);
};
The x default position should sit it just 4 px off the right edge of the screen. But based on your screenshot, I'm assuming you're using some kind of plugin that is overwriting this. You might have to go through the plugins and search for "_cancelButton.x"

Otherwise, you should be able to just set this._cancelButton.x = whatever.
Maybe a hard number like 600 (I have no idea what your screen dimensions are)
This was very helpful, thank you. I will take a look at it in a little bit.
 

Latest Threads

Latest Posts

Latest Profile Posts

That moment when I am listening to another instructor teach and I am thinking…I have been doing this for almost 30 years…I know this material…I teach this material…and you are confusing the crap out of me…let alone the students. What the actual $&@#! are you talking about? :eek:
Help me make a choice. Which one makes more sense?
A. Range style 1.pngDiamond shape
B.Range style 2.png Square shape
I created a skill that can only be used if there are enemies within the player's range. When the player's range is 2, which one do you think is more appropriate to describe the range area?
Just once I would like to see some innocent person stumble upon a body in a crime show and instead of scream they sigh and just say, "Found another one."
Can we get like a RPGM VXA Pro edition with all the limits gone!!
I drew @TheoAllen 's Cecilia~

yVLlTmK.png

Forum statistics

Threads
128,358
Messages
1,193,873
Members
168,852
Latest member
xSeggy
Top