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 맵/타일 SG_Map Pause ver.1 by sandgolem 2 백호 2009.02.22 1290
660 전투 SG_Batte Retry ver.4 by sandgolem 2 백호 2009.02.22 1457
659 장비 KGC_장비확장 (7/30일자) 12 file 백호 2009.02.22 2055
658 전투 KGC_Active Count Battle (7/30일자) 7 file 백호 2009.02.22 1846
657 장비 장비품개조 - KGC_AlterEquipment (8/12일자) 2 file 백호 2009.02.22 1694
656 저장 SG_Automatic Save 백호 2009.02.22 970
655 기타 Encounter Control by SephirothSpawn (SDK호환) 4 file 백호 2009.02.22 1157
654 기타 잠수방지 스크립트 12 백호 2009.02.22 1865
653 기타 만화형태 말칸 스크립트 28 file 백호 2009.02.22 3704
652 이동 및 탈것 그림자 스크립트 13 file 백호 2009.02.22 3540
651 전투 적의 여러차례 행동 스크립트 1 백호 2009.02.22 1320
650 전투 방어시에 속성 저항,스테이트무시 스크립트 1 백호 2009.02.22 1017
649 아이템 아이템 사용 클래스 한정 스크립트! 2 백호 2009.02.22 1146
648 아이템 지정한 아이템 갯수 제한 3 백호 2009.02.22 1282
» 기타 실제시간표시스크립트입니다...[중뷁이면지성;;] 4 백호 2009.02.22 1349
646 메뉴 메뉴 단축키 스크립트 14 백호 2009.02.22 2958
645 이동 및 탈것 금금님 요청 대쉬 1 백호 2009.02.22 1382
644 메뉴 메뉴에 그림넣기 4 file 백호 2009.02.22 4411
643 기타 더블애니메이션 스크립트 1 백호 2009.02.22 1593
642 스킬 KGC - 도주스킬 스크립트 백호 2009.02.22 1193
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