Class: Scene_Name

Inherits:
Scene_MenuBase show all
Defined in:
Scene_Name.rb

Overview

** Scene_Name


This class performs name input screen processing.

Instance Method Summary (collapse)

Methods inherited from Scene_MenuBase

#create_background, #create_help_window, #dispose_background, #next_actor, #on_actor_change, #prev_actor, #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?, #terminate, #transition_speed, #update, #update_all_windows, #update_basic

Instance Method Details

- (Object) on_input_ok


  • Input [OK]




28
29
30
31
# File 'Scene_Name.rb', line 28

def on_input_ok
  @actor.name = @edit_window.name
  return_scene
end

- (Object) prepare(actor_id, max_char)


  • Prepare




11
12
13
14
# File 'Scene_Name.rb', line 11

def prepare(actor_id, max_char)
  @actor_id = actor_id
  @max_char = max_char
end

- (Object) start


  • Start Processing




18
19
20
21
22
23
24
# File 'Scene_Name.rb', line 18

def start
  super
  @actor = $game_actors[@actor_id]
  @edit_window = Window_NameEdit.new(@actor, @max_char)
  @input_window = Window_NameInput.new(@edit_window)
  @input_window.set_handler(:ok, method(:on_input_ok))
end