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 7284
381 아이템 아이템 단축키로 구입 스크립트 3 백호 2009.02.22 1256
380 스킬 KGC - 도주스킬 스크립트 백호 2009.02.22 1210
379 기타 더블애니메이션 스크립트 1 백호 2009.02.22 1617
378 메뉴 메뉴에 그림넣기 4 file 백호 2009.02.22 4440
377 이동 및 탈것 금금님 요청 대쉬 1 백호 2009.02.22 1388
376 메뉴 메뉴 단축키 스크립트 14 백호 2009.02.22 2971
» 기타 실제시간표시스크립트입니다...[중뷁이면지성;;] 4 백호 2009.02.22 1365
374 아이템 지정한 아이템 갯수 제한 3 백호 2009.02.22 1303
373 아이템 아이템 사용 클래스 한정 스크립트! 2 백호 2009.02.22 1164
372 전투 방어시에 속성 저항,스테이트무시 스크립트 1 백호 2009.02.22 1023
371 전투 적의 여러차례 행동 스크립트 1 백호 2009.02.22 1331
370 이동 및 탈것 그림자 스크립트 13 file 백호 2009.02.22 3560
369 기타 만화형태 말칸 스크립트 28 file 백호 2009.02.22 3721
368 기타 잠수방지 스크립트 12 백호 2009.02.22 1883
367 기타 Encounter Control by SephirothSpawn (SDK호환) 4 file 백호 2009.02.22 1165
366 저장 SG_Automatic Save 백호 2009.02.22 986
365 장비 장비품개조 - KGC_AlterEquipment (8/12일자) 2 file 백호 2009.02.22 1705
364 전투 KGC_Active Count Battle (7/30일자) 7 file 백호 2009.02.22 1851
363 장비 KGC_장비확장 (7/30일자) 12 file 백호 2009.02.22 2079
362 전투 SG_Batte Retry ver.4 by sandgolem 2 백호 2009.02.22 1484
Board Pagination Prev 1 ... 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 ... 52 Next
/ 52