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

 

메뉴위에 찔러넣으세요..;

그냥 메뉴에 들어가면 현제시간이 표시되는

별것아닌 스크립트에요;

Who's 백호

?

이상혁입니다.

http://elab.kr

Comment '4'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
661 전투 SBABS게이지바 file 백호 2009.02.21 2285
660 아이템 아이템을 얻으면 자동으로 아이템 입수 메세지윈도우 띄우기 4 백호 2009.02.22 2279
659 영상 avi 동영상 실행 스크립트 9 백호 2009.02.21 2278
658 이동 및 탈것 8방향움직임과 8방향 캐릭터칩 호환 2 file 백호 2009.02.21 2273
657 [헬악이] 스크립트 사용법 !!!(꼭 읽으세요!!) 3 아방스 2007.11.09 2264
656 메시지 WhiteFlute 멀티메시지 스크립트 (XP/VX/VXA) 4 Alkaid 2013.02.05 2263
655 기타 탤레포트 스크립트 3 앞잡이 2011.12.10 2260
654 키입력 新전체키 스크립트(그에 따른 그림도 실려있음) 6 file 백호 2009.02.21 2255
653 타이틀/게임오버 타이틀 화면 커스터마이즈 1.11 by パラ犬 3 Alkaid 2010.09.29 2247
652 기타 [신기술 체험] 마우스 클릭 드래그 드롭 7 file 백호 2009.02.22 2246
651 메뉴 메뉴 화면 변경 스크립트 file 백호 2009.02.21 2236
650 [수정]스토리스크랩트 {예제 첨부} 10 file WMN 2008.03.17 2230
649 레벨 9999 스크립트 23 WMN 2008.03.17 2218
648 상점 여관 시스템 5 file 백호 2009.02.22 2209
647 그래픽 Meagan's Particles 1.1 by DerVVulfman 3 Alkaid 2011.11.01 2205
646 기타 한계 돌파스크립트 8 G MAX 2009.09.03 2204
645 저장 멀티넷스크립트 -> 아이피 세이브,로드 스크립트 9 file 백호 2009.02.22 2204
644 타이틀/게임오버 타이틀 랜덤 출력 기능 1.5 5 file 코아 코스튬 2010.09.29 2203
643 메뉴 새로운 메뉴 시스템 을 한글화 및 약간 개조 3 file 백호 2009.02.21 2203
642 메시지 txt 메세징 스크립트 4 에돌이 2011.07.12 2199
Board Pagination Prev 1 ... 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 ... 52 Next
/ 52