XP 스크립트

#==============================================================================
# ■ Window_PlayTime
#------------------------------------------------------------------------------
#  메뉴 화면에서 플레이 시간을 표시하는 윈도우입니다.
#==============================================================================

class Window_PlayTime < Window_Base
#--------------------------------------------------------------------------
# ● 오브젝트 초기화
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 126)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
#--------------------------------------------------------------------------
# ● 리프레쉬
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = text_color(6)
time = Time.now
text = time.strftime(" 시계 - %X")
self.contents.draw_text(-10, 0, 135, 32, text, 2)
self.contents.font.color = system_color
self.contents.draw_text(4, 32, 120, 32, "플레이시간")
@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, 88, text, 2)
end

#--------------------------------------------------------------------------
# ● 프레임 갱신
#--------------------------------------------------------------------------
def update
super
if Graphics.frame_count / Graphics.frame_rate != @total_sec
refresh
end
end
end

----------------------------------------------------------------------------------------------
출저:http://cafe.daum.net/doogydogRPG

 

Who's 아방스

profile
Atachment
첨부 '1'
Comment '3'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
621 전투 XAS 여러가지버전. 9 §포뇨§ 2010.02.23 4395
620 전투 XAS_Hero_3_6 24 ok하승헌 2010.02.18 2868
619 전투 xas히어로에디션 3.4 14 ps인간 2009.01.04 4044
618 기타 XP 각종 스크립트입니다. 36 file 쿠도신이치 2009.04.26 4266
617 HUD xp대화창에 얼굴, 이름 넣기!! [방법두 있음] 3 백호 2009.02.21 3545
616 영상 XP에서 AVI파일을 지원가능하게 하는 스크립트 2 백호 2009.02.21 1189
615 XP의 느린FPS 빠르게하기 16 주유공근615 2011.02.22 3139
614 메시지 XRXS9 - 메세지 표시 업그레이드 X file Alkaid 2010.09.07 3306
613 저장 [ AutoSave ]오토세이브, 뜻 그대로 자동저장스크립트 17 file 제로스S2 2009.08.06 3694
612 [ 무기 & 방어구 레벨제한 스크립트 ]엄청유용! ㅎ 24 file 제로스S2 2009.08.05 3554
611 기타 [All RGSS] File-Ex file Cheapmunk 2014.12.29 961
610 기타 [All RGSS] FileTest (Unicode) file Cheapmunk 2014.12.29 611
609 기타 [All RGSS] 게임 다중 실행 방지 스크립트 1 file Cheapmunk 2014.05.24 1373
608 기타 [All RGSS] 윈도우 메세지박스 스크립트 (Completed ver) 5 file Cheapmunk 2014.06.22 2179
607 기타 [All RGSS] 윈도우 커서 숨기기/보이기 1 file Cheapmunk 2014.03.02 1956
606 그래픽 [AWS- Advanced Weather System] 이름그대로 강화된 날씨시스템. 11 file 제로스S2 2009.08.02 3988
605 기타 [Game_Actor] 게이지바 표시 스크립트 8 file - 하늘 - 2009.08.03 4174
604 저장 [KCG] 2 Pane Save Scene file 백호 2009.02.22 1128
603 저장 [KCG] 2 Pane Save Scene 번역본 백호 2009.02.22 1118
602 스킬 [KGC] Skill Grouping 백호 2009.02.21 861
Board Pagination Prev 1 ... 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 ... 52 Next
/ 52