赞 | 0 |
VIP | 230 |
好人卡 | 0 |
积分 | 1 |
经验 | 7916 |
最后登录 | 2019-1-21 |
在线时间 | 352 小时 |
Lv1.梦旅人 万物创造者
- 梦石
- 0
- 星屑
- 54
- 在线时间
- 352 小时
- 注册时间
- 2008-2-15
- 帖子
- 2432
|
- class Window_VariableWindow < Window_Base
- def initialize
- super(0,0,200,60)
- self.opacity = 0
- self.visible = false
- refresh
- end
- def refresh
- self.contents.clear
- self.contents.draw_text(0, 0, 40, WLH, $game_variables[1])
- end
- end
- class Scene_Map < Scene_Base
- alias variable_start start
- alias variable_update update
- alias variable_terminate terminate
- def start
- variable_start
- @variableWindow = Window_VariableWindow.new
- end
- def update
- @variableWindow.update
- @variableWindow.refresh
- @variableWindow.visible = true
- variable_update
- end
- def terminate
- variable_terminate
- @variableWindow.dispose
- end
- end
复制代码
差不多就是这样 |
|