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
214 기타 SFont 사용 스크립트 by Trickster Alkaid 2010.10.05 1516
213 기타 Complete Climate and Time System 1.2 by ForeverZer0 1 Alkaid 2010.09.17 1315
212 기타 간단한 Scene_Base Alkaid 2010.09.09 1394
211 기타 Chaos Project Debug System 1.06b by Blizzard file Alkaid 2010.09.07 1370
210 기타 House Decoration System 1.6 by MephistoX (SDK 2.x, MACL 2.x 필요) 1 file Alkaid 2010.09.02 1494
209 기타 Phylomortis.com 스크립트들. file Alkaid 2010.09.02 1776
208 기타 액알 30 지존!! 2010.07.26 5099
207 기타 명령어들 6 지존!! 2010.07.24 2288
206 기타 데이터베이스 자체 제한 해체 XP Ver. 13 THE풀잎 2010.07.04 2171
205 기타 endroll 주석 번역 6 file insertend 2010.05.15 1638
204 기타 거울에 캐릭 반사 20 ok하승헌 2010.02.18 2388
203 기타 3D스크립트 48 file ok하승헌 2010.02.18 3808
202 기타 말풍선 스크립트. 62 file 『동그라미』♥ 2010.02.04 4254
201 기타 하나더올립니다....하암........이건...렙제라네요 7 벨☆ 2010.01.23 1754
200 기타 턴제새로운거. 39 file 이안 2010.01.17 3297
199 기타 스탯 13 file 이안 2010.01.17 2325
198 기타 rpgxp [체험판] 입니다. 6 file 인웅이 아부지 2010.01.12 2289
197 기타 한계 돌파스크립트 8 G MAX 2009.09.03 2206
196 기타 홈페이지 띄우기 (VX 상관없음.) 6 KNAVE 2009.08.25 2139
195 기타 클리어 횟수 기록하기 1 file 허걱 2009.08.22 2194
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 Next
/ 13