Choices menu alignment.

I try to get the choices menu to the left of the screen.

I found this piece of script inside the Window_ChoiceList script:

# * Update Window Position #-------------------------------------------------------------------------- def update_placement self.width = [max_choice_width + 12, 96].max + padding * 2 self.width = [width, Graphics.width].min self.height = fitting_height($game_message.choices.size) self.x = Graphics.width - width if @message_window.y >= Graphics.height / 2 self.y = @message_window.y - height else self.y = @message_window.y + @message_window.height end endAfter trying several possibilities to set the menu to the left I'm stuck.

First I was under the impression that this line: self.x = Graphics.width - width was the placement of the script. Something like x = 0 with calculating the length of the sentences.

But this line: self.width = [max_choice_width + 12, 96].max + padding * 2 also does something with the alignment.

This line: self.width = [width, Graphics.width].min I just dont understand. I switched width, Graphics.width but that has no effect as far as i can see.

Has someone an idea what to change to get the choices menu align at the left side of the screen?
This line: self.width = [width, Graphics.width].min I just dont understand. I switched width, Graphics.width but that has no effect as far as i can see.

--> it doesn't matter which one comes first since it gets the minimum between the two...

self.x will move the x start point I think, but it might still be moving because of the width... you can try to mix and match values until you came with the desired positions...
I did changed it now from: self.x = Graphics.width - width to self.x = width - width

And so far I can see those that works 🙂

Thnx adiktuzmiko
But isn't that the same as self.x = 0 ? since width - width = 0
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/choices-menu-alignment.18326/