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 6153
881 장비 장비 시 전능력 표시 스크립트 4 file 백호 2009.02.21 1109
880 기타 Drago - Custom Resolution by LiTTleDRAgo Alkaid 2014.02.13 1109
879 기타 KGC, SG 필수 스크립트 1 백호 2009.02.22 1110
878 아이템 아이템 종류별로 구분해놓기!! file 백호 2009.02.21 1112
877 전투 FFX, X-2, FFXII 식으로 대미지 표시하기 by squall@rmxp.org 백호 2009.02.22 1114
876 전투 마법검 스크립트 file 백호 2009.02.21 1116
875 메뉴 FF7 Menu version 3 by AcedentProne (SDK 호환) file 백호 2009.02.22 1116
874 전투 레벨업 시스템 제거 스크립트 file 백호 2009.02.21 1117
873 저장 [KCG] 2 Pane Save Scene 번역본 백호 2009.02.22 1118
872 아이템 아이템 분류별로 나누기 (1) - 밑글과 다른 스크립트 3 file 백호 2009.02.21 1122
871 스킬 KGC_HideNameSkill(명칭 비표시 스킬) 백호 2009.02.22 1122
870 HUD 직업명띄우기 스크립트 2 백호 2009.02.21 1123
» 메뉴 메뉴에서 실제시간 보기 2 백호 2009.02.21 1124
868 기타 Multiple Currencies(여러 개의 통화단위 사용) 2 백호 2009.02.22 1124
867 미니맵 Passability Minimap by squall@rmxp.org 백호 2009.02.22 1125
866 오디오 음악감상 스크립트 3 file 백호 2009.02.21 1126
865 전투 배틀샵 스크립트 1 백호 2009.02.22 1126
864 장비 Multi-equip script 노신버전 2 file 백호 2009.02.22 1127
863 저장 [KCG] 2 Pane Save Scene file 백호 2009.02.22 1127
862 이동 및 탈것 KGC_RemoveElements file 백호 2009.02.22 1127
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 52 Next
/ 52