RPGXP 스크립트
2011.06.22 08:04

그레고리우스력 원리.

조회 수 2506 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
class Window_달력 < Window_Base
  #--------------------------------------------------------------------------
  # ● 오브젝트 초기화
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 160, 96)
    self.contents = Bitmap.new(width - 32, height - 32)
    refresh
  end
    $year = 1502
    $month = 1
    $date = 1
  def 달력
    $date += 1
    if $month == 2 #2월일 경우
      if $year%4==0 #윤년
        if $date >= 30
          $month = 3
          $date = 1
        end
      else
        if $date >= 29
          $month = 3
          $date = 1
        end
      end
    else #2월이 아닌 경우
      if $month < 8 #1, 3, 4,5, 6, 7월
        if $month%2 == 0 #4, 6월
          if $date >= 31
          $month +=1
          $date = 1
          end
        else
          if $date >= 32
          $month +=1
          $date = 1
          end
        end
      else #8, 9, 10, 11, 12월
        if $month%2 == 0 #8, 10, 12월
          if $month == 12
            if $date >=32
            $month = 1
            $date = 1
            end
          else  
            if $date >=32
            $month +=1
            $date = 1
            end
          end
        else
          if $date >=31
          $month +=1
          $date = 1
          end         
        end       
      end
  end
end
 
 
  #--------------------------------------------------------------------------
  # ● 리프레쉬
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    self.contents.font.color = system_color
    self.contents.draw_text(4, 0, 120, 32, "날짜")
    self.contents.font.color = normal_color
    self.contents.draw_text(4, 32, 120, 32, $year.to_s + "년" + $month.to_s + "월" + $date.to_s + "일", 2)
  end
 
  #--------------------------------------------------------------------------
  # ● 프레임 갱신
  #--------------------------------------------------------------------------
  def update
    super
    if Graphics.frame_count / Graphics.frame_rate != @total_sec
      refresh
    end
  end
end
?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수 추천 수
268 RPGXP 스크립트 달리기스크립트 4 천둥번들 2014.02.22 2309 2
267 RPGXP 스크립트 3D스크립트!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 6 공박사 2014.01.18 2807 2
266 RPGXP 스크립트 메뉴에 퀘스트 있는거 2  운 2013.10.12 1960 2
265 RPGXP 스크립트 퀘스트 스크립트 21  운 2013.10.12 3103 2
264 RPGXP 스크립트 2D 마인크래프트 프로젝트 7 2013.09.26 3048 2
263 RPGMV 플러그인 HUD (HP, MP, EXP, LEVEL 표시) 화면에 표시해주는 플러그인! 4 file willmv 2015.11.07 1370 2
262 RPGMV 플러그인 해상도 변경 플러그인 v0.1 4 file 카리스 2015.10.24 5696 2
261 RPGXP 스크립트 선택 메뉴를 가운데 정렬 해보자. 1 file 창조도시 2007.12.02 1955 2
260 RPGXP 스크립트 대화 글씨 폰트를 원하는 폰트로 바꾸기 창조도시 2007.12.01 1812 2
259 RPGXP 스크립트 기차 파티 스크립트 2 창조도시 2008.07.24 1879 2
258 RPGVX 스크립트 이벤트커맨드 스크립트 사용법 모음 2 Evangelista 2009.07.21 2647 2
257 RPGXP 스크립트 스텟포인트투자 1 file A.M.S 2010.10.24 2550 2
256 RPGVX 스크립트 이벤트커맨드 스크립트 조건분기법 모음 1 Evangelista 2009.11.18 2535 2
255 RPGVX 스크립트 이벤트커맨드 스크립트 조건분기법 모음 1 Evangelista 2009.11.18 2590 2
254 RPGVX 스크립트 이벤트커맨드 스크립트 사용법 모음 2 Evangelista 2009.07.21 2530 2
253 RPGXP 스크립트 한글이름입력기 v1.76 1 1 창조도시 2008.07.24 2698 2
252 RPGXP 스크립트 기차 파티 스크립트 2 창조도시 2008.07.24 1466 2
251 RPGXP 스크립트 선택 메뉴를 가운데 정렬 해보자. 1 file 창조도시 2007.12.02 1449 2
250 RPGXP 스크립트 대화 글씨 폰트를 원하는 폰트로 바꾸기 창조도시 2007.12.01 1391 2
249 RPGXP 스크립트 스텟포인트투자 1 file A.M.S 2010.10.24 2142 2
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 15 Next
/ 15






[개인정보취급방침] | [이용약관] | [제휴문의] | [후원창구] | [인디사이드연혁]

Copyright © 1999 - 2016 INdiSide.com/(주)씨엘쓰리디 All Rights Reserved.
인디사이드 운영자 : 천무(이지선) | kernys(김원배) | 사신지(김병국)