RPGXP Script
2013.10.01 06:29

현재 시간 확인

Views 1459 Votes 0 Comment 2
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

#============================================================================== 

# ■ Window_NowTime

#------------------------------------------------------------------------------ 

#  현재시간을 표시하는 윈도우입니다. 

#============================================================================== 


class Window_NowTime < Window_Base 

#-------------------------------------------------------------------------- 

# ● 오브젝트 초기화 

#-------------------------------------------------------------------------- 

def initialize 

super(0, 0, 200, 50)

self.contents = Bitmap.new(width - 32, height - 32) 

self.contents.font = Font.new("나눔고딕", 18) # <- font, size 

self.opacity = 180

self.back_opacity = 180

refresh 

end 

#-------------------------------------------------------------------------- 

# ● 리프레쉬 

#-------------------------------------------------------------------------- 

def refresh 

self.contents.clear 

time = Time.now 

text = time.strftime("현재시간 - %X") 

self.contents.draw_text(0, -7, 120, 32, text, 2) 

end 


#-------------------------------------------------------------------------- 

# ● 프레임 갱신 

#-------------------------------------------------------------------------- 

def update 

super 

if Graphics.frame_count / Graphics.frame_rate != @total_sec 

refresh 

end 

end 

end 


class Scene_Map 

  alias update_before_map update 

  def update 

    update_before_map 

    @window_nowtime = Window_NowTime.new unless @window_nowtime

    @window_nowtime.update 

    unless $scene.is_a?(Scene_Map) 

      @window_nowtime.dispose 

      @window_nowtime = nil       

    end 

  end 

end

?
  • ?
    2013.10.15 03:20
    폰트를 하나로 사용하는 것은 권장하지 않습니다.
    기본값을 사용하시거나, 폰트네임을 배열로 여러개 지정하여 폴백 처리를 해 주시기 바랍니다.
  • ?
    2013.10.24 08:22
    제가 만든거 아닙니다.

List of Articles
No. Category Subject Author Date Views Votes
288 RPGMV Plugin Mog_Battle_hud(MZ버전도 있습니다) 스트레이보우 2021.03.05 2011 0
287 RPGMV Plugin 컷신 플러그인 스트레이보우 2020.10.30 2694 0
286 RPGMV Plugin 업적플러그인 스트레이보우 2020.09.02 2262 0
285 RPGXP Script 한글조합입력기(영어가능) file 조규진1 2019.11.10 1201 0
284 RPGMV Plugin 게임에서 제공해주는 노래가 아닌 외부에서 다운받고 안에 넣어쓰려면 어떻게 해야하나요? 3 BigOrca 2019.07.26 1650 0
283 RPGMV Plugin Ghost Effect 러닝은빛 2019.01.20 1323 0
282 RPGXP Script RPG XP Xas액알 1 file 심심치 2018.10.30 1331 0
281 RPGMV Plugin 커스텀 숫자 입력 패드 1 file 러닝은빛 2018.10.19 1399 0
280 RPGMV Plugin 9마리 이상의 몬스터 설정 | More Enemies 러닝은빛 2018.08.31 1150 0
279 RPGMV Plugin 동적 맵 타일 수정 플러그인 베지테리안카카오 2018.07.17 1251 0
278 RPGVX Ace script VXA에서 XBOX360 컨트롤러 사용 여부 체크 file 러닝은빛 2018.07.15 1053 0
277 RPGMV Plugin RMMV 옵션 창에 메시지 속도 및 글자 크기 변경 기능 추가 file 러닝은빛 2018.07.15 1795 0
276 RPGMV Plugin 한글 데미지 표시 file 러닝은빛 2018.07.09 1613 0
275 RPGMV Plugin [ MV ] 심장[체력표시 하트] 플러그인 file 수성의물 2018.07.01 2407 0
274 RPGMV Plugin [鳥小屋] 실적 플러그인(인게임 트로피 시스템) file 이니군 2017.10.31 1909 0
273 RPGVX Ace script LuD Script Package 1 file LuD 2017.08.16 1822 0
272 RPGVX Ace script [VXAce] 레이어 맵 <layer> 시스템 file LuD 2017.08.07 1478 0
271 RPGMV Plugin [RPG MV] 퀘스트 마커 지속 표시 플러그인 file lklslel 2017.04.09 1875 0
270 RPGMV Plugin Mirror Area - RPG Maker MV 2 file 러닝은빛 2017.01.03 5181 0
269 RPGMV Plugin Keyboard Event - RPG Maker MV 1 러닝은빛 2017.01.03 2456 0
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 15 Next
/ 15


[privacy statements] | [Terms of Use] | [Contact us] | [Sponsorship] | [Indiside History]

Copyright © 1999 - 2016 INdiSide.com/CL3D Co., Ltd. All Rights Reserved.
Owner : Chunmu(Jiseon Lee) | kernys(Wonbae Kim) | Sasinji(Byungkook Kim)