#==============================================================================
# ** Window_Gold
#------------------------------------------------------------------------------
# This window displays the party's gold.
#==============================================================================
class Window_Gold < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, window_width, fitting_height(2))
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
contents.clear
draw_actor_level(4, 0)
draw_currency_value(value, currency_unit, 4, line_height, contents.width - 8)
end
#--------------------------------------------------------------------------
# * Draw Level
#--------------------------------------------------------------------------
def draw_actor_level(x, y)
actor = $game_party.battle_members[0]
width = contents.width - 8
cx = text_size(Vocab::level_a).width
change_color(normal_color)
draw_text(x, y, width - cx - 2, line_height, actor.level, 2)
change_color(system_color)
draw_text(x, y, width, line_height, Vocab::level_a, 2)
end
end