赞 | 3 |
VIP | -1 |
好人卡 | 32 |
积分 | 14 |
经验 | 29154 |
最后登录 | 2024-12-3 |
在线时间 | 677 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 1357
- 在线时间
- 677 小时
- 注册时间
- 2009-11-11
- 帖子
- 2790
|
本帖最后由 summer92 于 2011-10-22 11:36 编辑
由于你的代码 我放都新工程无反应 我只能在你的原代码上改
你看看这样运行OK吗?- class Window_Variables < Window_Base
- def initialize(x, y)
- super(x, y, 160, WLH + 32)
- refresh
- end
- def refresh
- self.contents.clear
- self.contents.font.color = system_color
- self.contents.draw_text(87, -4, 120, 32, "分")
- self.contents.font.color = normal_color
- self.contents.draw_text(17, -4, 120, 32,$game_variables[8],1)
-
- end
- end
-
-
- class Window_Variables < Window_Base
- def initialize(x, y)
- super(x, y, 160, WLH + 32)
- refresh
- end
- def refresh
- self.contents.clear
- self.contents.font.color = system_color
- self.contents.draw_text(87, -4, 120, 32, "貨幣")
- self.contents.font.color = normal_color
- self.contents.draw_text(17, -4, 120, 32,$game_variables[9],2)
-
- end
- end
-
- class Scene_Menu < Scene_Base
- #--------------------------------------------------------------------------
- # ● 开始处理
- #--------------------------------------------------------------------------
- alias start_v start
- def start
- start_v
- @variables_window0 = Window_Variables.new(0, 258)
- @variables_window1 = Window_Variables.new(0, 304)
- @variables_window2 = Window_Variables.new(0, 348)
- end
- #--------------------------------------------------------------------------
- # ● 结束处理
- #--------------------------------------------------------------------------
- alias terminate_v terminate
- def terminate
- terminate_v
- @variables_window0.dispose
- @variables_window1.dispose
- @variables_window2.dispose
- end
- #--------------------------------------------------------------------------
- # ● 更新画面
- #--------------------------------------------------------------------------
- alias update_v update
- def update
- update_v
- @variables_window0.update
- @variables_window1.update
- @variables_window2.update
- end
- end
复制代码 |
|