| 赞 | 0  | 
 
| VIP | 0 | 
 
| 好人卡 | 2 | 
 
| 积分 | 1 | 
 
| 经验 | 952 | 
 
| 最后登录 | 2013-12-27 | 
 
| 在线时间 | 336 小时 | 
 
 
 
 
 
Lv1.梦旅人 
	- 梦石
 - 0 
 
        - 星屑
 - 50 
 
        - 在线时间
 - 336 小时
 
        - 注册时间
 - 2010-8-26
 
        - 帖子
 - 428
 
 
 
 | 
	
- #==============================================================================
 
 - # ■ Window_PlayTime
 
 - #------------------------------------------------------------------------------
 
 - #  菜单画面显示游戏时间的窗口。
 
 - #==============================================================================
 
  
- class Window_PlayTime < Window_Base
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 初始化对像
 
 -   #--------------------------------------------------------------------------
 
 -   def initialize(x, y)
 
 -     super(x , y, 160 , 63)
 
 -     refresh
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 刷新-6
 
 -   #--------------------------------------------------------------------------
 
 -   def refresh
 
 -     self.contents.clear
 
 -     self.contents.font.color = system_color
 
 -     self.contents.font.size = 18
 
 -     self.contents.draw_text(8, -6, 120, 32, "")
 
 -     @total_sec = Graphics.frame_count / Graphics.frame_rate
 
 -     hour = @total_sec / 60 / 60
 
 -     min = @total_sec / 60 % 60
 
 -     sec = @total_sec % 60
 
 -     text = sprintf("%02d:%02d:%02d", hour, min, sec)
 
 -     self.contents.font.color = normal_color
 
 -     self.contents.draw_text(8, -6, 120, 32, text, 2)
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 刷新画面
 
 -   #--------------------------------------------------------------------------
 
 -   def update
 
 -     super
 
 -     if Graphics.frame_count / Graphics.frame_rate != @total_sec
 
 -       refresh
 
 -     end
 
 -   end
 
 - end
 
  复制代码 加入这脚本,然后在Scene_Menu下的-   #--------------------------------------------------------------------------
 
 -   # ● 开始处理
 
 -   #--------------------------------------------------------------------------
 
 -   def start
 
 -     super
 
 -     create_menu_background
 
 -     create_command_window
 
 -     @gold_window = Window_Gold.new(150, 360)
 
 -     @playtime_window = Window_PlayTime.new(370, 360)###
 
 -     @status_window = Window_MenuStatus.new(160, 0)
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 结束处理
 
 -   #--------------------------------------------------------------------------
 
 -   def terminate
 
 -     super
 
 -     dispose_menu_background
 
 -     @command_window.dispose
 
 -     @gold_window.dispose
 
 -     @playtime_window.dispose###
 
 -     @status_window.dispose
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 更新画面
 
 -   #--------------------------------------------------------------------------
 
 -   def update
 
 -     super
 
 -     update_menu_background
 
 -     @command_window.update
 
 -     @gold_window.update###
 
 -     @playtime_window.update###
 
 -     @status_window.update
 
 -     if @command_window.active
 
 -       update_command_selection
 
 -     elsif @status_window.active
 
 -       update_actor_selection
 
 -     end
 
 -   end
 
  复制代码 这样就可以了,坐标自己去改,上面那个可以改字体大小,下面的改坐标 |   
 
 
 
 |