<META content="Namo WebEditor v6.0" name=generator> 플레이 시간 윈도우를 개조시킨 스크립트입니다. 현재 날짜와 시간이 추가로 표시됩니다. #-------------------------------------------------------------------------- # ● リフレッシュ #-------------------------------------------------------------------------- def refresh self.contents.clear self.contents.font.color = text_color(6) time = Time.now text = time.strftime("%x %X") self.contents.draw_text(-28, 0, 152, 32, text, 2) self.contents.font.color = system_color self.contents.draw_text(4, 32, 40, 32, "Time") @total_sec = Graphics.frame_count / Graphics.frame_rate hour = @total_sec / 60 / 60 min = @total_sec / 60 % 60 sec = @total_sec % 60 text = sprintf("%02d:%02d:%02d", hour, min, sec) self.contents.font.color = normal_color self.contents.draw_text(4, 32, 120, 32, text, 2) end