- 注册时间
- 2006-3-29
- 最后登录
- 2006-11-5
⑦老手
- 积分
- 6509
|

楼主 |
发表于 2006-5-23 01:57:24
|
显示全部楼层
用了柳柳的方法还是不行 用F9 debug可以通过开关实现显示和关闭金钱窗口的效果
但用在地图上就不能成功了
#==============================================================================
# ■ Window_QQ
#------------------------------------------------------------------------------
# 显示金钱的窗口。
#==============================================================================
class Window_QQ < Window_Base
#--------------------------------------------------------------------------
# ● 初始化窗口
#--------------------------------------------------------------------------
def initialize
super(480, 0, 160, 64)
self.contents = Bitmap.new(width - 32, height - 32)
if $game_switches[49]==true
self.visible=true
else
self.visible=false
end
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
def update
if $game_switches[49]==true
self.visible=true
refesh
else
self.visible=false
end
end
然后按照Saiholmes ?的方法
Scene_Map里
16行加入了 @qq_window=Window_QQ.new
39行加入了 @qq_window.dispose 在# 标题画面切换中的情况下的前面
76行加入了 @qq_window.update 在# 游戏结束的情况下的前面
结果还是不行。。。。。。 |
|