#==============================================================================
# ** Custom Commands - Bestiary
#------------------------------------------------------------------------------
# © Dargor, 2008
# 25/05/08
# Requested by reikei
#==============================================================================
# Vocabulary
Vocab::Bestiary = 'Bestiary'
#==============================================================================
# ** Scene_Menu
#------------------------------------------------------------------------------
# This class performs the menu screen processing.
#==============================================================================
class Scene_Menu < Scene_Base
#--------------------------------------------------------------------------
# * Alias Listing
#--------------------------------------------------------------------------
alias dargor_vx_cmcbestiary_menu_create_command_window create_command_window
alias dargor_vx_cmcbestiary_menu_update_command_selection update_command_selection
#--------------------------------------------------------------------------
# * Create Command Window
#--------------------------------------------------------------------------
def create_command_window
commands = $game_system.menu_commands
index = commands.index(Vocab::save)
$game_system.add_menu_command(index, Vocab::Bestiary)
dargor_vx_cmcbestiary_menu_create_command_window
end
#--------------------------------------------------------------------------
# * Update Command Selection
#--------------------------------------------------------------------------
def update_command_selection
dargor_vx_cmcbestiary_menu_update_command_selection
command = @command_window.selection
if Input.trigger?(Input::C)
Sound.play_decision
case @command_window.selection
when Vocab::Bestiary
$scene = Scene_Bestiary.new(true)
end
end
end
end
#==============================================================================
# ** Scene_Bestiary
#------------------------------------------------------------------------------
# This class performs the bestiary screen processing.
#==============================================================================
class Scene_Bestiary < Scene_Base
#--------------------------------------------------------------------------
# * Alias Listing
#--------------------------------------------------------------------------
alias dargor_vx_cmcbestiary_update_list_selection update_list_selection
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize(from_menu=false)
@from_menu = from_menu
end
#--------------------------------------------------------------------------
# * Update List Selection
#--------------------------------------------------------------------------
def update_list_selection
if Input.trigger?(Input::B)
Sound.play_cancel
if @from_menu
index = $game_system.menu_commands.index(Vocab::Bestiary)
$scene = Scene_Menu.new(index)
else
$scene = Scene_Map.new
end
return
end
dargor_vx_cmcbestiary_update_list_selection
end
end