#==========================================================================
# ** GameBaker Shorter Save Time
#==========================================================================
# by Solstice (thanks sg)
# Version 1 [VX]
# January 26th, 2008
#==========================================================================
class Window_SaveFile
def draw_playtime(x, y, width, align)
hour = @total_sec / 60 / 60
min = @total_sec / 60 % 60
sec = @total_sec % 60
if hour >= 1
time_string = sprintf("%01d:%02d:%02d", hour, min, sec)
else
time_string = sprintf("%01d:%02d", min, sec)
end
self.contents.font.color = normal_color
self.contents.draw_text(x, y, width, WLH, time_string, 2)
end
end