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 6203
194 기타 killer님 요청하신 스크립트 두번째입니다. 나뚜루 2009.02.21 759
193 기타 Anti Event Lag Script 3 백호 2009.02.21 1057
192 기타 시작하자 마자 풀 스크린 2 백호 2009.02.21 1082
191 기타 AMS-Advanced Message Script Edited by Dubleax 3 file 백호 2009.02.21 766
190 기타 능력치 무한대 스크립트 (따로 넣을필요없음) 2 백호 2009.02.21 1027
189 기타 Steal Script (SDK Required) file 백호 2009.02.21 1182
188 기타 횡스크롤 스크립트 한국말 번역. 15 file 백호 2009.02.21 3316
187 기타 Activation_system file 백호 2009.02.22 775
186 기타 Hero Databass 4 file 백호 2009.02.22 797
185 기타 몬스터 도감 18 file 백호 2009.02.22 2669
184 기타 아이디 스크립트 4 백호 2009.02.22 1761
183 기타 폰트 자동 설치 스크립트 12 file 백호 2009.02.22 2865
182 기타 스크롤되는 파노라마(Autoscrolling Panorama) by RPG Advocate 백호 2009.02.22 993
181 기타 현재 맵BGM을 그대로 전투 BGM으로 연결 from phylomortis.com 백호 2009.02.22 1180
180 기타 Advanced Weather System (AWS) 3 file 백호 2009.02.22 1272
179 기타 ↓ 날씨 자동설정 스크립트 3 백호 2009.02.22 1530
178 기타 에어리어 설정 by RPG Advocate 백호 2009.02.22 710
177 기타 강제 종료시키기 1 file 백호 2009.02.22 1015
176 기타 AMS___Advanced_Message_Script 1 file 백호 2009.02.22 889
175 기타 Real-Time Day Night 3 백호 2009.02.22 751
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 Next
/ 13