class Window_GameOverCommand < Window_Command #-------------------------------------------------------------------------- # ● オブジェクト初期化 #-------------------------------------------------------------------------- def initialize super(0, 0) update_placement select_symbol(:load_data) if continue_enabled self.openness = 0 open end #-------------------------------------------------------------------------- # ● ウィンドウ幅の取得 #-------------------------------------------------------------------------- def window_width return 280 end #-------------------------------------------------------------------------- # ● ウィンドウ位置の更新 #-------------------------------------------------------------------------- def update_placement self.x = (Graphics.width - width) / 2 self.y = (Graphics.height * 1.6 - height) / 2 end #-------------------------------------------------------------------------- # ● コマンドリストの作成 #-------------------------------------------------------------------------- def make_command_list add_command($data_save_game_on_memory_vocab[0], :load_data0,load_on_memory_enabled(0)) add_command($data_save_game_on_memory_vocab[1], :continue, continue_enabled) add_command($data_save_game_on_memory_vocab[2], :title) end #-------------------------------------------------------------------------- # ● コンティニューの有効状態を取得 #-------------------------------------------------------------------------- def continue_enabled DataManager.save_file_exists? end #-------------------------------------------------------------------------- # ● コンティニューの有効状態を取得 #-------------------------------------------------------------------------- def continue_auto_enabled DataManager.save_file0_exists? end def load_on_memory_enabled(i) $game_temp.temp_save[i] end end