level on money window (VX Ace)
RGSS3 Script RequestsI've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
Here you go.
Code:
#==============================================================================
# ** 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
thank you. I tested it, it works. Once again, thank you.
No problem. I'll fix it up in a min to help with any compatibility issues you might run into in the future.
Original thread: https://forums.rpgmakerweb.com/threads/level-on-money-window-vx-ace.57077/
