change choice box position

Hi
I use yanfly engine core to set message window position and size
(because I use 16:9 and if the box too long player will lost focus in text)
but the choice is not move to align with the message box
how to change that or I need to change the main rmmv code?
thank you


Capture.JPG
Here is the part of the code that you need to change:
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;
    }
};

Here is what you need to change
case 2(Right position):
this.x = Graphics.boxWidth - this.width;
Window_ChoiceList.prototype.updatePlacement
thank you
it working perfect now!
Capture.JPG
thank you
it working perfect now!
View attachment 114380
I am a noob at programming. Can you tell me what was the name of the script file is ? And what changes did u make ?
Necro-post notice: @aspdmulti

All scripts to do with windows is in the file rpg_windows.js

Original thread: https://forums.rpgmakerweb.com/threads/change-choice-box-position.108402/