Hello!
I've been struggling with repositioning the Choice List window and I have no idea if I've missed something important.
I've tried to use both Biud436 and Tsukimi's choice list plugins that should allow me to do that, but didn't work for some reason (I've troubleshot them both in a new project, rearranging plugin priority, doublechecked Plugin Command typos etc.).
So I tried to directly modify it in the rpg_windows.js file as well, but couldn't figure out what defines the Y position of the window.
Original code:
Code that I tried:
Changing the x value works, and it becomes the default position... but y position is unchanged.
All I want to do is to move the whole window up a bit so that it doesn't cover the message window.
Any help is appreciated!
I've been struggling with repositioning the Choice List window and I have no idea if I've missed something important.
I've tried to use both Biud436 and Tsukimi's choice list plugins that should allow me to do that, but didn't work for some reason (I've troubleshot them both in a new project, rearranging plugin priority, doublechecked Plugin Command typos etc.).
So I tried to directly modify it in the rpg_windows.js file as well, but couldn't figure out what defines the Y position of the window.
Original code:
Code:
Window_ChoiceList.prototype.updatePlacement = function() {
var positionType = $gameMessage.choicePositionType();
var messageY = this._messageWindow.y;
this.width = this.windowWidth();
this.height = this.windowHeight();
switch (positionType) {
case 0:
this.x = 0;
break;
case 1:
this.x = (Graphics.boxWidth - this.width) / 2;
break;
case 2:
this.x = Graphics.boxWidth - this.width;
break;
}
if (messageY >= Graphics.boxHeight / 2) {
this.y = messageY - this.height;
} else {
this.y = messageY + this._messageWindow.height;
}
};
Code that I tried:
Code:
Window_ChoiceList.prototype.updatePlacement = function() {
var positionType = $gameMessage.choicePositionType();
var messageY = this._messageWindow.y;
this.width = this.windowWidth();
this.height = this.windowHeight();
this.x = 0;
this.y = 0;
};
Changing the x value works, and it becomes the default position... but y position is unchanged.
All I want to do is to move the whole window up a bit so that it doesn't cover the message window.
Any help is appreciated!