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 7310
194 기타 Anti Event Lag Script 3 백호 2009.02.21 1070
193 기타 어디에 쓰이는지 불확실한 스크립트 1 백호 2009.02.22 1070
192 기타 [KGC] 개요 스크립트 2 백호 2009.02.21 1073
191 기타 시작하자 마자 풀 스크린 2 백호 2009.02.21 1102
190 기타 말걸면그림천천히뜨기 4 file 백호 2009.02.21 1114
189 기타 KGC, SG 필수 스크립트 1 백호 2009.02.22 1116
188 기타 Multiple Currencies(여러 개의 통화단위 사용) 2 백호 2009.02.22 1136
187 기타 Tax Script 1.2 by The Darklord@rmxp.org 2 file 백호 2009.02.22 1149
186 기타 메세지창의 위치 변동 자동화 file 백호 2009.02.21 1151
185 기타 Drago - Custom Resolution by LiTTleDRAgo Alkaid 2014.02.13 1154
184 기타 스테이터스 표시 플러스 1.00ver 백호 2009.02.22 1155
183 기타 맵처리를 가볍게 1 백호 2009.02.21 1160
182 기타 전투 승리 BGM+페이드아웃 스크립트 1 file 백호 2009.02.21 1164
181 기타 레벨9999스크립트 4 백호 2009.02.21 1165
180 기타 Encounter Control by SephirothSpawn (SDK호환) 4 file 백호 2009.02.22 1166
179 기타 메세지를 분출해 표시 백호 2009.02.22 1178
178 기타 마우스로 길찾기 스크립트 예제 file 백호 2009.02.21 1179
177 기타 현재 맵BGM을 그대로 전투 BGM으로 연결 from phylomortis.com 백호 2009.02.22 1187
176 기타 Shift Puzzles v2 by SephirothSpawn (SDK호환) 3 file 백호 2009.02.22 1187
175 기타 상점 변동시세 적용 스크립트 3 file 백호 2009.02.21 1189
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 Next
/ 13