class Window_Bianliangci < Window_Base
#--------------------------------------------------------------------------
# ● 初始化对像
#--------------------------------------------------------------------------
def initialize
super(0, 0, 300, 100)
self.contents = Bitmap.new(width - 32, height - 32)
self.windowskin = Bitmap.new(1,1)
refresh
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(4, 35, 120, 32, "银两:")
self.contents.font.color = normal_color
#self.contents.draw_text(105, 35, 120, 32, $game_variables[61].to_s)
ci = $game_variables[61]
text = ci >= 10000 ? (ci / 10000).to_s + " W " + (ci - ((ci / 10000)*10000)).to_s : ci.to_s
self.contents.draw_text(65, 35, 120, 32,text)
end
end
class Window_Bianliangci < Window_Base
#--------------------------------------------------------------------------
# ● 初始化对像
#--------------------------------------------------------------------------
def initialize
super(0, 0, 300, 100)
self.contents = Bitmap.new(width - 32, height - 32)
self.windowskin = Bitmap.new(1,1)
refresh
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(4, 35, 120, 32, "银两:")
self.contents.font.color = normal_color
#self.contents.draw_text(105, 35, 120, 32, $game_variables[61].to_s)
ci = $game_variables[61]
text = ci >= 10000 ? (ci / 10000).to_s + " W " + (ci - ((ci / 10000)*10000)).to_s : ci.to_s
self.contents.draw_text(65, 35, 120, 32,text)
end
end