Class: Scene_Load

Inherits:
Scene_File show all
Defined in:
Scene_Load.rb

Overview

** Scene_Load


This class performs load 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_Load.rb', line 17

def first_savefile_index
  DataManager.latest_savefile_index
end

- (Object) help_window_text


  • Get Help Window Text




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

def help_window_text
  Vocab::LoadMessage
end

- (Object) on_load_success


  • Processing When Load Is Successful




34
35
36
37
38
39
# File 'Scene_Load.rb', line 34

def on_load_success
  Sound.play_load
  fadeout_all
  $game_system.on_after_load
  SceneManager.goto(Scene_Map)
end

- (Object) on_savefile_ok


  • Confirm Save File




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

def on_savefile_ok
  super
  if DataManager.load_game(@index)
    on_load_success
  else
    Sound.play_buzzer
  end
end