#==============================================================================
# Window_PartyCommand
#--------------------------------------------------------------------------
# Script by BlueScope
#==============================================================================
class Window_PartyCommand < Window_Selectable
#--------------------------------------------------------------------------
def initialize
super(0, 0, 640, 96)
self.contents = Bitmap.new(width - 32, height - 32)
self.x = 320 - self.width / 2
self.back_opacity = 160
@commands = ["Attack", "Escape"]
@item_max = 2
@column_max = 1
draw_item(0, normal_color)
draw_item(1, $game_temp.battle_can_escape ? normal_color : disabled_color)
self.active = false
self.visible = false
self.index = 0
end
#--------------------------------------------------------------------------
def draw_item(index, color)
self.contents.font.color = color
rect = Rect.new(4, index * 32, self.width-40, 32)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
self.contents.draw_text(rect, @commands[index], 1)
end
#--------------------------------------------------------------------------
def update_cursor_rect
self.cursor_rect.set(0, index * 32, self.width-40, 32)
end
#--------------------------------------------------------------------------
end