#==============================================================================
# ** Window_Command
#------------------------------------------------------------------------------
# This window deals with general command choices.
#==============================================================================
class Window_Command < Window_Selectable
#--------------------------------------------------------------------------
# * Alias
#--------------------------------------------------------------------------
alias :freakboy_active_command_color_update :update
#--------------------------------------------------------------------------
# * Draw Item
# index : item number
# color : text color
#--------------------------------------------------------------------------
def draw_item(index, color)
self.contents.font.color = color
rect = Rect.new(4, 32 * index, self.contents.width - 8, 32)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
if (@index == index)
self.contents.font.color = crisis_color
end
self.contents.draw_text(rect, @commands[index])
end
#--------------------------------------------------------------------------
# * Update (Alias)
#--------------------------------------------------------------------------
def update
if (@active_command_index != @index)
@active_command_index = @index
refresh
end
freakboy_active_command_color_update
end
end