Initial import
This commit is contained in:
48
Scripts/RPG/Window_PartyCommand.rb
Normal file
48
Scripts/RPG/Window_PartyCommand.rb
Normal file
@@ -0,0 +1,48 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#==============================================================================
|
||||
# ** Window_PartyCommand
|
||||
#------------------------------------------------------------------------------
|
||||
# This window is used to select whether to fight or escape on the battle
|
||||
# screen.
|
||||
#==============================================================================
|
||||
|
||||
class Window_PartyCommand < Window_Command
|
||||
#--------------------------------------------------------------------------
|
||||
# * Object Initialization
|
||||
#--------------------------------------------------------------------------
|
||||
def initialize
|
||||
super(0, 0)
|
||||
self.openness = 0
|
||||
deactivate
|
||||
end
|
||||
#--------------------------------------------------------------------------
|
||||
# * Get Window Width
|
||||
#--------------------------------------------------------------------------
|
||||
def window_width
|
||||
return 128
|
||||
end
|
||||
#--------------------------------------------------------------------------
|
||||
# * Get Number of Lines to Show
|
||||
#--------------------------------------------------------------------------
|
||||
def visible_line_number
|
||||
return 4
|
||||
end
|
||||
#--------------------------------------------------------------------------
|
||||
# * Create Command List
|
||||
#--------------------------------------------------------------------------
|
||||
def make_command_list
|
||||
add_command(Vocab::fight, :fight)
|
||||
add_command(Vocab::escape, :escape, BattleManager.can_escape?)
|
||||
end
|
||||
#--------------------------------------------------------------------------
|
||||
# * Setup
|
||||
#--------------------------------------------------------------------------
|
||||
def setup
|
||||
clear_command_list
|
||||
make_command_list
|
||||
refresh
|
||||
select(0)
|
||||
activate
|
||||
open
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user