RPGXP スクリプト
2011.06.22 08:04

그레고리우스력 원리.

閲覧数 2754 推奨数 0 コメント 0
?

Shortcut

Prev前へ 書き込み

Next次へ 書き込み

Larger Font Smaller Font 上へ 下へ Go comment 印刷
?

Shortcut

Prev前へ 書き込み

Next次へ 書き込み

Larger Font Smaller Font 上へ 下へ Go comment 印刷
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
番号 カテゴリ タイトル 投稿者 日付 閲覧数 推奨数
120 RPGXP スクリプト 8방향이동 1 1 file A.M.S 2010.10.14 2151 0
119 RPGXP スクリプト 아이템획득 표시 1 file A.M.S 2010.10.14 2276 0
118 RPGXP スクリプト 특정범위내에들어오면이동하기 file A.M.S 2010.10.14 2343 0
117 RPGXP スクリプト 아이템획득 표시 file A.M.S 2010.10.14 2494 0
116 RPGXP スクリプト 새로운 턴형식(사이드뷰비슷한...) 1 file A.M.S 2010.10.14 2542 1
115 RPGXP スクリプト 8방향이동 1 file A.M.S 2010.10.14 2330 0
114 RPGXP スクリプト 스텟포인트투자 1 file A.M.S 2010.10.24 2142 2
113 RPGXP スクリプト 퀘스트스크립트 2 1 file A.M.S 2010.10.24 2511 1
112 RPGXP スクリプト 아이템소지 한계돌파 file A.M.S 2010.10.24 1964 0
111 RPGXP スクリプト 상점에서 상세정보보여주기 file A.M.S 2010.10.24 1818 0
110 RPGXP スクリプト 부드러운화면이동 file A.M.S 2010.10.24 2046 0
109 RPGXP スクリプト 직업명 표시 file A.M.S 2010.10.24 1787 0
108 RPGXP スクリプト 퀘스트스크립트 2 file A.M.S 2010.10.24 2635 1
107 RPGXP スクリプト 아이템소지 한계돌파 file A.M.S 2010.10.24 2248 0
106 RPGXP スクリプト 스텟포인트투자 1 file A.M.S 2010.10.24 2550 2
105 RPGXP スクリプト 상점에서 상세정보보여주기 file A.M.S 2010.10.24 2057 0
104 RPGXP スクリプト 부드러운화면이동 file A.M.S 2010.10.24 2375 0
103 RPGXP スクリプト 직업명 표시 file A.M.S 2010.10.24 2103 0
102 RPGXP スクリプト 그레고리우스력 원리. 1 협객 2011.06.22 2506 0
» RPGXP スクリプト 그레고리우스력 원리. 협객 2011.06.22 2754 0
Board Pagination Prev 1 2 3 4 5 6 7 8 Next
/ 8






[プライバシーに関する声明] | [利用規約] | [お問い合わせ] | [スポンサーシップ] | [ンサイド・ヒストリー]

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