#============================================================================== # ■ VXAce-RGSS3-31 和風レイアウト by Claimh #------------------------------------------------------------------------------ # 終了画面変更 #============================================================================== #============================================================================== # ■ Window_GameEnd #------------------------------------------------------------------------------ #  ゲーム終了画面で、タイトルへ/シャットダウンを選択するウィンドウです。 #============================================================================== class Window_J_GameEnd < Window_J_Command #-------------------------------------------------------------------------- # ● オブジェクト初期化 #-------------------------------------------------------------------------- def initialize super(0, 0) update_placement self.openness = 0 open end #-------------------------------------------------------------------------- # ● ウィンドウ高さの取得 #-------------------------------------------------------------------------- def window_height return 160 end #-------------------------------------------------------------------------- # ● ウィンドウ位置の更新 #-------------------------------------------------------------------------- def update_placement self.x = (Graphics.width - width) / 2 self.y = (Graphics.height - height) / 2 end #-------------------------------------------------------------------------- # ● コマンドリストの作成 #-------------------------------------------------------------------------- def make_command_list add_command(Vocab::to_title, :to_title) add_command(Vocab::shutdown, :shutdown) add_command(Vocab::cancel, :cancel) end end #============================================================================== # ■ Scene_End #------------------------------------------------------------------------------ #  ゲーム終了画面の処理を行うクラスです。 #============================================================================== class Scene_End < Scene_MenuBase #-------------------------------------------------------------------------- # ● コマンドウィンドウの作成 #-------------------------------------------------------------------------- def create_command_window @command_window = Window_J_GameEnd.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 end