#encoding:utf-8
#==============================================================================
# ■ Window_Menu_Playtime
#------------------------------------------------------------------------------
# 显示游戏累计时间的视窗
#==============================================================================
class Window_Menu_Playtime < Window_Base
def initialize
super(0, 0, window_width, fitting_height(1))
update
end
#--------------------------------------------------------------------------
# ● 取得视窗的宽度
#--------------------------------------------------------------------------
def window_width
return 160
end
#--------------------------------------------------------------------------
# ● 更新画面
#--------------------------------------------------------------------------
def update
super
return if $game_system.playtime == @playtime
@playtime = $game_system.playtime
contents.clear
draw_icon(280,0,0)
draw_text(contents.rect, $game_system.playtime_s, 2)
end
#--------------------------------------------------------------------------
# ● 开启视窗
#--------------------------------------------------------------------------
def open
refresh
super
end
end