How to center menu windows/commands

Status
Not open for further replies.

Hyperly

i like rocks
Veteran
Joined
Jun 25, 2016
Messages
30
Reaction score
2
First Language
English
Primarily Uses
RMXP
I'm looking for anything that would let me center the menu but I can't find anything in the scripts. Is there any community scripts that could do this, or is there an easy solution that I missed?

EDIT:
NEVERMIND, AGAIN
I found out that you could just add @command_window.x = *some integer value*
and @command_window.y = *some integer value*
below line 26 or 27 on Scene_Menu, you can also do this same thing in Mobius' menu command manager by adding the same thing inside the method "create_command_window"
 
Last edited:

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,624
Reaction score
5,104
First Language
English
Primarily Uses
RMVXA
Glad you figured it out!

If you ever have a window with a variable height/width, I believe you can use the "width" and "height" properties of both the screen and the window in the line of code (rather than a simple integer value) to tell RPG Maker where to place the window onscreen so it's centered - the formula is (Screen Width or Height - Window Width or Height) * 0.5

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.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,854
Messages
1,016,998
Members
137,562
Latest member
tamedeathman
Top