Changing Choice Window Y-Axis Position

Hi
@caethyril
I have a similar issue, but I'm using a script call to change the X and Y position of my message box.
I have tried your plugin, it doesn't work for me sadly.
I also tried changing choice list position directly in rpg_scenes or rpg_window, but the only thing I succeed is moving on the X axis, but Y I don't know how to do.
Do you know by any chance how could I move the Y axis for the choice list with a fixed value that I define? Thank you


ejx7ys.png
@Mifey: maybe add something like this to your script call?
Code:
SceneManager._scene._messageWindow._choiceWindow.y = 300;
Note that the y position is defined for the top-left of the window, so it will vary depending on how many choices are displayed.
I tried as script call before the choice happens:
SceneManager._scene._messageWindow._choiceWindow.y = 300;
SceneManager._scene._messageWindow._choiceWindow.y = 800;
etc.

Not working. 🙁

I also tried
SceneManager._scene._messageWindow._choiceWindow.x = 300;
and not moving too.
@Mifey: in that case I think it's a plugin-specific problem; it works OK for me. 🙁

I'd suggest you either:
  • Ask the plugin author about it, or
  • Start your own thread in JavaScript Support, with links to the plugin(s) you're using.
@caethyril
Thanks, it might be that but I have tried disabling everything and still the same problem.
Anyway, I made big progress, by using Galv_VisualNovelChoice plugin I discovered that its plugin contained something that allowed to move the choiceList for my game. That piece of code totally works for me if I change certain values in his JS file, and it looks like he is using a simple revamped version of the original code that allows moving the choice list, so I think making it works for base code should be easy probably.
Sadly I can't use Galv_VisualNovelChoice as it is creating a ton of errors with others plugin that I have (for totally different reasons than the moving choice list thing that I'm trying to accomplish though).

If you have 5 mins, please would you be kind enough to just give an eye and tell me how I could reuse its code that allows moving the choice list but this time for the original window used by RPGMV and not its complete special plugin that uses special buttons causing errors on my end.


The part that if I modify it, actually move my choice list:
Code:
Galv.VNC.Window_ChoiceList_updatePlacement = Window_ChoiceList.prototype.updatePlacement;
Window_ChoiceList.prototype.updatePlacement = function() {
    Galv.VNC.Window_ChoiceList_updatePlacement.call(this);
    if ($gameSystem.vnChoices && Galv.VNC.alwaysMid) {
        this.x = (Graphics.boxWidth - this.width) / 2;
    };
    if (this._messageWindow.y >= Graphics.boxHeight / 2) {
        this.y -= Galv.VNC.msgGap;
    } else {
        this.y += Galv.VNC.msgGap;
    };
};

If I replace in this code => this.y = arbitrarynumber;
It does move my choice list window accordingly.
Nevermind, found a solution. If anyone cannot solve this or want a plugin to set up choice position X & Y, use this:

Open it and change this this.y and this.x to what you want!:uhappy:
@Mifey I've split your posts off into their own thread, please do not hijack someone else's thread to get help.
Nevermind, found a solution. If anyone cannot solve this or want a plugin to set up choice position X & Y, use this:

Open it and change this this.y and this.x to what you want!:uhappy:
I noticed that changing this.x doesn't do anything.
Not to Necro this thread, but I wanted to let everyone know that Mifey's solution allowed me to figure out how to change the Options Window position in MZ as well. Here's the code... just set 20 to whatever you want (in pixels). (Negative goes up, positive goes down)

Thanks Mifey!


Code:
Window_ChoiceList.prototype.windowY = function() {
    const messageY = this._messageWindow.y -20;
    if (messageY >= Graphics.boxHeight / 2) {
        return messageY - this.windowHeight();
    } else {
        return messageY + this._messageWindow.height;
    }
};

Original thread: https://forums.rpgmakerweb.com/threads/changing-choice-window-y-axis-position.108738/