11-27-2026, 11:21 AM
The stock game-end screen is only two small classes (Window_EndCommand + Scene_End). The script you linked redefines Scene_End itself to act as the menu, which is why the original vanished - but you can put the same pair back under new names and call it from the menu's exit option:
Paste it below the menu script (still in Materials), then look inside the menu script for the method its exit option is bound to - it ends in Graphics.exit or SceneManager.exit - and replace that line with:
Because it is called as its own scene, Esc / X hits the cancel handler and simply drops you back into the menu, so a misclick costs nothing. Scene_MenuBase also gives it the same dimmed background as the default game-end screen.
One caveat: if that menu draws its own cursor graphics instead of using Window_Command, the pop-up will look plainer than the rest of the menu - the behaviour is still the stock one.
Code:
class Window_EndConfirmCommand < Window_Command
def initialize
super(0, 0)
end
def window_width
return 160
end
def make_command_list
add_command(Vocab::to_title, :to_title)
add_command(Vocab::shutdown, :shutdown)
end
end
class Scene_EndConfirm < Scene_MenuBase
def start
super
create_command_window
end
def create_command_window
@command_window = Window_EndConfirmCommand.new
@command_window.set_handler(:to_title, method(:command_to_title))
@command_window.set_handler(:shutdown, method(:command_shutdown))
@command_window.set_handler(:cancel, method(:return_scene))
end
def command_to_title
close_command_window
fadeout_all
SceneManager.goto(Scene_Title)
end
def command_shutdown
close_command_window
fadeout_all
SceneManager.exit
end
endPaste it below the menu script (still in Materials), then look inside the menu script for the method its exit option is bound to - it ends in Graphics.exit or SceneManager.exit - and replace that line with:
Code:
SceneManager.call(Scene_EndConfirm)Because it is called as its own scene, Esc / X hits the cancel handler and simply drops you back into the menu, so a misclick costs nothing. Scene_MenuBase also gives it the same dimmed background as the default game-end screen.
One caveat: if that menu draws its own cursor graphics instead of using Window_Command, the pop-up will look plainer than the rest of the menu - the behaviour is still the stock one.

