|
发表于 2007-12-24 18:56:27
|
显示全部楼层
[s:5] 因为这个东西要涉及的修改不少……SE只是说了一种获得时间的方法而已
菜单画面那里显示步数的窗口是Window_steps吧
把这段替换你脚本的相应位置试试
我测试是没问题……- #==============================================================================
- # ■ Window_Steps
- #------------------------------------------------------------------------------
- # 菜单画面显示步数的窗口。
- #==============================================================================
- class Window_Steps < Window_Base
- #--------------------------------------------------------------------------
- # ● 初始化对像
- #--------------------------------------------------------------------------
- def initialize
- super(0, 0, 160, 96)
- self.contents = Bitmap.new(width - 32, height - 32)
- refresh
- end
- #--------------------------------------------------------------------------
- # ● 刷新
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- self.contents.font.color = system_color
- self.contents.draw_text(4, 0, 128, 32, "当前时间")
- self.contents.font.color = normal_color
- self.contents.draw_text(4, 32, 120, 24, Time.now.to_s, 2)
- end
- end
复制代码
至于提取现实时间的话就是Time.now |
|