赞 | 2 |
VIP | 109 |
好人卡 | 208 |
积分 | 4 |
经验 | 22037 |
最后登录 | 2024-11-11 |
在线时间 | 1198 小时 |
Lv2.观梦者 虚構歪曲
- 梦石
- 0
- 星屑
- 364
- 在线时间
- 1198 小时
- 注册时间
- 2010-12-18
- 帖子
- 3928
|
本帖最后由 忧雪の伤 于 2011-3-13 12:59 编辑
- class Scene_Map
-
- alias :old_main_now :main unless method_defined? :old_main_now
- def main
- @count = 0
- old_main_now
- end
-
- alias :old_update_now :update unless method_defined? :old_update_now
- def update
- if @count < 400
- @count += 1
- else
- $game_variables[1] += 1
- # => print $game_variables[1]
- @count = 0
- end
- $game_variables[2] += 1 if $game_variables[1] >= 60
- # => print $game_variables[2]
- $game_variables[3] = "春" if $game_variables[2] == 1
- old_update_now
- end
-
- end
复制代码
- class Window_Mapnumber < Window_Base
- def initialize
- super(0, 0, 160, 64)
- self.contents = Bitmap.new(width - 32, height - 32)
- self.opacity = 0
- refresh
- end
-
- def refresh
- self.contents.clear
- self.contents.font.color = normal_color
- self.contents.draw_text(0, 0, 128, 32, $game_variables[1].to_s, 0)
- self.contents.draw_text(20, 0, 128, 32, $game_variables[2].to_s, 0)
- self.contents.draw_text(40, 0, 128, 32, $game_variables[3].to_s, 0)
- end
-
- end
- class Scene_Map
-
- alias :old_main_now_now :main unless method_defined? :old_main_now_now
-
- def main
- @mapnumber_window = Window_Mapnumber.new
- @old_number = $game_variables[1]
- old_main_now_now
- @mapnumber_window.dispose
- end
-
- alias :old_update_now_now :update unless method_defined? :old_update_now_now
-
- def update
- if @old_number != $game_variables[1]
- @mapnumber_window.refresh
- @old_number = $game_variables[1]
- end
- old_update_now_now
- end
-
- end
复制代码 |
评分
-
查看全部评分
|