#==============================================================================
# ■ Window_Gold
#------------------------------------------------------------------------------
# 显示金钱的窗口。
#==============================================================================
class Window_Gold < Window_Base
#--------------------------------------------------------------------------
# ● 初始化窗口
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 64) #可以修改坐标
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)
end
end
以下引用小湖于2007-7-24 19:48:04的发言:
能随时刷新需要放到scene_map的update中
可以参考 在地图任意位置显示变量的那个脚本
以下引用神州巨龙于2007-7-24 19:50:12的发言:
除了这个还有个问题,我打开菜单后那个金钱窗口不能被盖住,是不是改金钱窗口的透明度就行?
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |