| 
 
| 赞 | 0 |  
| VIP | 4 |  
| 好人卡 | 6 |  
| 积分 | 1 |  
| 经验 | 2003 |  
| 最后登录 | 2017-2-10 |  
| 在线时间 | 165 小时 |  
 Lv1.梦旅人 
	梦石0 星屑50 在线时间165 小时注册时间2010-7-3帖子137 | 
| 
这是时间框的脚本....如何让时间变得慢点....
x
加入我们,或者,欢迎回来。您需要 登录 才可以下载或查看,没有帐号?注册会员  
 37、38、39、40行可否解释下....我想取消60进制的...
 复制代码#==============================================================================
#本脚本是从七夕小雨的脚本:RM时钟后面的脚本提取再加上Window_PlayTime的脚本而成的.
#脚本作者:ad1234a(dpae3342)
#本脚本来源于66RPG转贴请保留该信息
#==============================================================================
#==============================================================================
# ■ Window_PlayTime
#------------------------------------------------------------------------------
#  菜单画面显示游戏时间的窗口。
#==============================================================================
$SHOW = 1 #显示/隐藏
class Window_PlayTime < Window_Base
  #--------------------------------------------------------------------------
  # ● 初始化对像
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 160, 96)
    self.contents = Bitmap.new(width - 32, height - 32)
    refresh
  end
  #--------------------------------------------------------------------------
  # ● 刷新
  #--------------------------------------------------------------------------
  def refresh
    if $game_switches[$SHOW]
     self.visible=true
    else
     self.visible=false
    end
    self.contents.clear
    self.contents.font.color = system_color
    self.contents.draw_text(4, 0, 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(4, 32, 120, 32, text, 2)
  end
  #--------------------------------------------------------------------------
  # ● 刷新画面
  #--------------------------------------------------------------------------
  def update
    super
    if Graphics.frame_count / Graphics.frame_rate != @total_sec
      refresh
    end
  end
end
#-----------------------------------------------------------------------------
#●以下是七夕小雨的脚本
#-----------------------------------------------------------------------------
class Scene_Map
  
 # 声明别名,以免冲突,主要用于功能追加
 alias mohock_main main
 def main
  # 生成窗口
  @time_bar=Window_PlayTime.new
  # 调用别名
  mohock_main
  # 释放倒计时窗口
  @time_bar.dispose
 end
 # 声明别名,以免冲突,主要用于功能追加
 alias mohock_update update
 def update
   @time_bar.refresh
   # 调用别名
   mohock_update
 end
end
)
 | 
 |