class Window_MenuCommand < Window_Command def initialize super(0, 0) select_last end def window_width Graphics.width end def visible_line_number 2 end def col_max if item_max % 2 == 1 ; item_max / 2 + 1 else ; item_max / 2 end end end class Window_Playtime < Window_Base def initialize(x, y, width) super(x, y, width, fitting_height(1)) update end def update super contents.clear draw_text(contents.rect, $game_system.playtime_s, 1) end end class Scene_Menu < Scene_MenuBase alias :hawkeye_start :start def start hawkeye_start x = @gold_window.width y = @status_window.height w = Graphics.width - @gold_window.width @playtime = Window_Playtime.new(x, y, w) end end
class Window_MenuCommand < Window_Command
def initialize
super(0, 0)
select_last
end
def window_width
Graphics.width
end
def visible_line_number
2
end
def col_max
if item_max % 2 == 1 ; item_max / 2 + 1
else ; item_max / 2 end
end
end
class Window_Playtime < Window_Base
def initialize(x, y, width)
super(x, y, width, fitting_height(1))
update
end
def update
super
contents.clear
draw_text(contents.rect, $game_system.playtime_s, 1)
end
end
class Scene_Menu < Scene_MenuBase
alias :hawkeye_start :start
def start
hawkeye_start
x = @gold_window.width
y = @status_window.height
w = Graphics.width - @gold_window.width
@playtime = Window_Playtime.new(x, y, w)
end
end
帮你重写了Window_MenuCommand和 Window_Playtime,时间在菜单中不刷新的问题估计是直接写在refresh里了,或者是写在update里但是没有调用…
|