XP 스크립트

main 위에 넣으세요


#==============================================================================
# ■ 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

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6203
28 메뉴 메뉴에 얼굴 그래픽 표시 4 file 백호 2009.02.21 3113
» 메뉴 메뉴에서 실제시간 보기 2 백호 2009.02.21 1124
26 메뉴 메뉴에서 커맨더실행하기 5 WMN 2008.04.06 1682
25 메뉴 메뉴화면 변경 스크립트 1 file 백호 2009.02.21 2772
24 메뉴 메뉴화면에 '해야 할 일' 알려주는 창 넣기 11 하진 2012.04.23 3257
23 메뉴 메이플스토리처럼 메뉴를^^ 57 file 딸기님 2010.07.13 7145
22 메뉴 비밀소년님의 필드에서 경치 % 로 나오는거 윈도우 없이 8 백호 2009.02.22 1793
21 메뉴 새로운 cms 4 file 백호 2009.02.22 2118
20 메뉴 새로운 메뉴 15 file 또라에몽 2010.07.17 5307
19 메뉴 새로운 메뉴 시스템 을 한글화 및 약간 개조 3 file 백호 2009.02.21 2203
18 메뉴 수정, 추가 링메뉴 10 file 백호 2009.02.22 2913
17 메뉴 스탯올리기 시스템 (액알가능) 27 file 백호 2009.02.22 3406
16 메뉴 스테이터스 일람 스크립트 file 백호 2009.02.21 1330
15 메뉴 스테이터스 화면 from Harts Horn 2 백호 2009.02.22 1572
14 메뉴 스테이터스 화면에 넥스트 표시 1 file 백호 2009.02.21 1759
13 메뉴 온라인메뉴처럼!! 메이플 메뉴처럼!! 변신~스크립트 33 WMN 2008.03.17 6824
12 메뉴 자세한 캐릭터 정보표시 스크립트 버전2 5 아방스 2009.01.12 2329
11 메뉴 자세항 개인 상태화면 8 아방스 2009.01.12 2361
10 메뉴 자작 메뉴 스크립트들(L's Simple CMS and menu scenes) (SDK 호환?) 10 Alkaid 2010.09.02 3461
9 메뉴 자작 커스텀 메뉴(데모 첨부) 3 백호 2009.02.22 2348
Board Pagination Prev 1 2 3 4 5 Next
/ 5