- Joined
- Feb 3, 2014
- Messages
- 1,451
- Reaction score
- 167
- First Language
- English
- Primarily Uses
is there a way to remove every window command but Quit and then position it with x and y?
Because i want a simple pause menu.....If the only menu command would be quit, why not just make it so that when you press the menu button, the game quits? It'd just be a unnecessary to have a menu with only one command...
class Scene_Menu < Scene_MenuBase def start super create_command_window end alias :mrts_half_create_command_window :create_command_window def create_command_window mrts_half_create_command_window @command_window.x = Graphics.width/2 - @command_window.width/2 @command_window.y = Graphics.height/2 - @command_window.height/2 endend class Window_MenuCommand < Window_Command def make_command_list add_game_end_command endend
Well then! Humph!.....i'll just shut up then.Like this?
class Scene_Menu < Scene_MenuBase def start super create_command_window end alias :mrts_half_create_command_window :create_command_window def create_command_window mrts_half_create_command_window @command_window.x = Graphics.width/2 - @command_window.width/2 @command_window.y = Graphics.height/2 - @command_window.height/2 endend class Window_MenuCommand < Window_Command def make_command_list add_game_end_command endend
Like this?
class Scene_Menu < Scene_MenuBase def start super create_command_window end alias :mrts_half_create_command_window :create_command_window def create_command_window mrts_half_create_command_window @command_window.x = Graphics.width/2 - @command_window.width/2 @command_window.y = Graphics.height/2 - @command_window.height/2 endend class Window_MenuCommand < Window_Command def make_command_list add_game_end_command endend
