#==============================================================================
# ■ Window_Gold
#------------------------------------------------------------------------------
# 显示金钱的窗口。
#==============================================================================
class Window_Gold < Window_Base
#--------------------------------------------------------------------------
# ● 初始化窗口
#--------------------------------------------------------------------------
def initialize
#===========================================
# ★ 修改过的地方
#===========================================
super(0, 0, 160, 96)
#===========================================
# ★ 修改过的地方完
#===========================================
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
cx = contents.text_size($data_system.words.gold).width
self.contents.font.color = normal_color
self.contents.draw_text(4, 0, 120-cx-2, 32, $game_party.gold.to_s, 2)
self.contents.font.color = system_color
self.contents.draw_text(124-cx, 0, cx, 32, $data_system.words.gold, 2)
#===========================================
# ★ 修改过的地方
#===========================================
cx = contents.text_size("灵魄").width
self.contents.font.color = normal_color
self.contents.draw_text(4, 32, 120-cx-2, 32, $game_variables[44].to_s, 2)
self.contents.font.color = system_color
self.contents.draw_text(124-cx, 32, cx, 32, "灵魄" , 2)
#===========================================
# ★ 修改过的地方完
#===========================================
end
end