How to get the options menu in a different position on screen

Power Master

Optimistic Game Designer
Veteran
Joined
Apr 18, 2015
Messages
112
Reaction score
12
First Language
English
Primarily Uses
RMMV
I adjusted the Options List script in VX Ace so it would appear in the middle of the screen rather than the right by combining the Title Screen Choices (which appear in the center of the screen) with the standard choices. I did this so it wouldn't conflict with the Yanfly "Improved Messages" script, where the options appear behind the name box.


Just replace the "Update Window Position" with the text below under 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) / 2
if @message_window.y >= Graphics.height / 2
self.y = @message_window.y - height
else
self.y = @message_window.y + @message_window.height
end
end


It's just a simple script change, nothing truly spectacular. But I figured I'd share what I discovered anyway.



I believe it's also possible to get the choices on the left of the screen as well, but I have not tried to figure how to do so. I myself only needed it in the center of the screen.


EDIT: Mess with the 2 in the X value to get the proper box placement.


I've heard there are options to adjust the position in MV, but I don't have that, so I had to get creative. :)


Screenshots (Warning: Contains very early work in progress!)





 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top