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
Regular
Joined
Mar 13, 2012
Messages
502
Reaction score
280
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

Updated my game's development post with the first video of it in action!


'Milestone Get!' :p
Heh, heh. I've been experimenting with a naughty word detector Common Event and using scripts to check certain strings. I never thought I would see such language in computer code. I would post a screen shot, but it probably wouldn't be appropriate, even with a Spoiler. But it certainly makes me laugh and it works great.
Yknow what? Im seriously considering recruiting a manager to oversee my games development.
Because I cannot focus or complete these tasks by myself. I need someone to give me orders, without having them be my boss.

Forum statistics

Threads
136,806
Messages
1,270,205
Members
180,559
Latest member
Cringe
Top