TheoAllen

Menu info patch

Feb 2nd, 2014
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.62 KB | None | 0 0
  1. class Window_MenuInfo < Window_Base
  2.  
  3.   def initialize(width)
  4.     super(0,0,width,fitting_height(3))
  5.     update_placement
  6.     refresh
  7.   end
  8.  
  9.   def draw_playtime(x,y)
  10.     rect = Rect.new(x,y,contents.width,line_height)
  11.     change_color(system_color)
  12.     draw_text(rect,TimeVocab)
  13.     change_color(normal_color)
  14.     @minute = time.total_minute
  15.     text = sprintf("%02d:%02d",time.hour,time.minute)
  16.     draw_text(x,y,contents.width,line_height,text,2)
  17.   end
  18.  
  19.   def update
  20.     super
  21.     refresh if visible && @minute != $game_system.time.total_minute
  22.   end
  23.  
  24.   def time
  25.     $game_system.time
  26.   end
  27.  
  28. end
Advertisement
Add Comment
Please, Sign In to add comment