Mas Sitios Para Guardar

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Mas Sitios Para Guardar as PDF for free.

More details

  • Words: 382
  • Pages: 3
reemplaza la clase "scene_file" por esto class scene_file por cierto creditos al autor : *rpg advocate* savefile_max = 99 # ------------------def initialize(help_text) @help_text = help_text end # ------------------def main @help_window = window_help.new @help_window.set_text(@help_text) @savefile_windows = [] @cursor_displace = 0 for i in 0..3 @savefile_windows.push(window_savefile.new(i, make_filename(i), i)) end @file_index = 0 @savefile_windows[@file_index].selected = true graphics.transition loop do graphics.update input.update update if $scene != self break end end graphics.freeze @help_window.dispose for i in @savefile_windows i.dispose end end # ------------------def update @help_window.update for i in @savefile_windows i.update end if input.trigger?(input::c) on_decision(make_filename(@file_index)) $game_temp.last_file_index = @file_index return end if input.trigger?(input::b) on_cancel return end if input.repeat?(input::down) if input.trigger?(input::down) or @file_index < savefile_max - 1 if @file_index == savefile_max - 1 $game_system.se_play($data_system.buzzer_se) return end @cursor_displace += 1 if @cursor_displace == 4 @cursor_displace = 3 for i in @savefile_windows

i.dispose end @savefile_windows = [] for i in 0..3 f = i - 2 + @file_index name = make_filename(f) @savefile_windows.push(window_savefile.new(f, name, i)) @savefile_windows[i].selected = false end end $game_system.se_play($data_system.cursor_se) @file_index = (@file_index + 1) if @file_index == savefile_max @file_index = savefile_max - 1 end for i in 0..3 @savefile_windows[i].selected = false end @savefile_windows[@cursor_displace].selected = true return end end if input.repeat?(input::up) if input.trigger?(input::up) or @file_index > 0 if @file_index == 0 $game_system.se_play($data_system.buzzer_se) return end @cursor_displace -= 1 if @cursor_displace == -1 @cursor_displace = 0 for i in @savefile_windows i.dispose end @savefile_windows = [] for i in 0..3 f = i - 1 + @file_index name = make_filename(f) @savefile_windows.push(window_savefile.new(f, name, i)) @savefile_windows[i].selected = false end end $game_system.se_play($data_system.cursor_se) @file_index = (@file_index - 1) if @file_index == -1 @file_index = 0 end for i in 0..3 @savefile_windows[i].selected = false end @savefile_windows[@cursor_displace].selected = true return end end end # ------------------def make_filename(file_index) return "save#{file_index + 1}.rxdata"

end # ------------------end despues reemplaza *def initialize* de "window_savefile" por esto. def initialize(file_index, filename, position) y = 64 + position * 104 super(0, y, 640, 104) self.contents = bitmap.new(width - 32, height - 32) @file_index = file_index @filename = "save#{@file_index + 1}.rxdata" @time_stamp = time.at(0) @file_exist = filetest.exist?(@filename) if @file_exist file = file.open(@filename, "r") @time_stamp = file.mtime @characters = marshal.load(file) @frame_count = marshal.load(file) @game_system = marshal.load(file) @game_switches = marshal.load(file) @game_variables = marshal.load(file) @total_sec = @frame_count / graphics.frame_rate file.close end refresh @selected = false end ahora cambia el nombre de "window_savefile" por "savefile_max = 99" podeis poner de 0...99 archivos para que mas.

Related Documents

Mas Sitios Para Guardar
November 2019 15
Guardar Pan Para Mayo
November 2019 14
Pasos Para Guardar Como
November 2019 39
Sitios
November 2019 33