Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Window_MenuInfo < Window_Base
- def initialize(width)
- super(0,0,width,fitting_height(3))
- update_placement
- refresh
- end
- def draw_playtime(x,y)
- rect = Rect.new(x,y,contents.width,line_height)
- change_color(system_color)
- draw_text(rect,TimeVocab)
- change_color(normal_color)
- @minute = time.total_minute
- text = sprintf("%02d:%02d",time.hour,time.minute)
- draw_text(x,y,contents.width,line_height,text,2)
- end
- def update
- super
- refresh if visible && @minute != $game_system.time.total_minute
- end
- def time
- $game_system.time
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment