Class: Scene_MenuBase

Inherits:
Scene_Base show all
Defined in:
Scene_MenuBase.rb

Overview

** Scene_MenuBase


This class performs basic processing related to the menu screen.

Direct Known Subclasses

Scene_Debug, Scene_End, Scene_Equip, Scene_File, Scene_ItemBase, Scene_Menu, Scene_Name, Scene_Shop, Scene_Status

Instance Method Summary (collapse)

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?, #transition_speed, #update, #update_all_windows, #update_basic

Instance Method Details

- (Object) create_background


  • Create Background




26
27
28
29
30
# File 'Scene_MenuBase.rb', line 26

def create_background
  @background_sprite = Sprite.new
  @background_sprite.bitmap = SceneManager.background_bitmap
  @background_sprite.color.set(16, 16, 16, 128)
end

- (Object) create_help_window


  • Create Help Window




40
41
42
43
# File 'Scene_MenuBase.rb', line 40

def create_help_window
  @help_window = Window_Help.new
  @help_window.viewport = @viewport
end

- (Object) dispose_background


  • Free Background




34
35
36
# File 'Scene_MenuBase.rb', line 34

def dispose_background
  @background_sprite.dispose
end

- (Object) next_actor


  • Switch to Next Actor




47
48
49
50
# File 'Scene_MenuBase.rb', line 47

def next_actor
  @actor = $game_party.menu_actor_next
  on_actor_change
end

- (Object) on_actor_change


  • Change Actors




61
62
# File 'Scene_MenuBase.rb', line 61

def on_actor_change
end

- (Object) prev_actor


  • Switch to Previous Actor




54
55
56
57
# File 'Scene_MenuBase.rb', line 54

def prev_actor
  @actor = $game_party.menu_actor_prev
  on_actor_change
end

- (Object) start


  • Start Processing




11
12
13
14
15
# File 'Scene_MenuBase.rb', line 11

def start
  super
  create_background
  @actor = $game_party.menu_actor
end

- (Object) terminate


  • Termination Processing




19
20
21
22
# File 'Scene_MenuBase.rb', line 19

def terminate
  super
  dispose_background
end