Class: Scene_Save

Inherits:
Scene_File show all
Defined in:
Scene_Save.rb

Overview

** Scene_Save


This class performs save screen processing.

Instance Method Summary (collapse)

Methods inherited from Scene_File

#bottom_index, #bottom_index=, #create_help_window, #create_savefile_viewport, #create_savefile_windows, #cursor_down, #cursor_pagedown, #cursor_pageup, #cursor_up, #ensure_cursor_visible, #index, #init_selection, #item_max, #on_savefile_cancel, #savefile_height, #start, #terminate, #top_index, #top_index=, #update, #update_cursor, #update_savefile_selection, #visible_max

Methods inherited from Scene_MenuBase

#create_background, #create_help_window, #dispose_background, #next_actor, #on_actor_change, #prev_actor, #start, #terminate

Methods inherited from Scene_Base

#check_gameover, #create_main_viewport, #dispose_all_windows, #dispose_main_viewport, #fadeout_all, #main, #perform_transition, #post_start, #pre_terminate, #return_scene, #scene_changing?, #start, #terminate, #transition_speed, #update, #update_all_windows, #update_basic

Instance Method Details

- (Object) first_savefile_index


  • Get File Index to Select First




17
18
19
# File 'Scene_Save.rb', line 17

def first_savefile_index
  DataManager.last_savefile_index
end

- (Object) help_window_text


  • Get Help Window Text




11
12
13
# File 'Scene_Save.rb', line 11

def help_window_text
  Vocab::SaveMessage
end

- (Object) on_save_success


  • Processing When Save Is Successful




34
35
36
37
# File 'Scene_Save.rb', line 34

def on_save_success
  Sound.play_save
  return_scene
end

- (Object) on_savefile_ok


  • Confirm Save File




23
24
25
26
27
28
29
30
# File 'Scene_Save.rb', line 23

def on_savefile_ok
  super
  if DataManager.save_game(@index)
    on_save_success
  else
    Sound.play_buzzer
  end
end