RPGXP Script
2011.06.22 08:04

그레고리우스력 원리.

Views 2754 Votes 0 Comment 0
?

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
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
No. Category Subject Author Date Views Votes
120 RPGXP Script 8방향이동 1 1 file A.M.S 2010.10.14 2151 0
119 RPGXP Script 아이템획득 표시 1 file A.M.S 2010.10.14 2276 0
118 RPGXP Script 특정범위내에들어오면이동하기 file A.M.S 2010.10.14 2343 0
117 RPGXP Script 아이템획득 표시 file A.M.S 2010.10.14 2494 0
116 RPGXP Script 새로운 턴형식(사이드뷰비슷한...) 1 file A.M.S 2010.10.14 2542 1
115 RPGXP Script 8방향이동 1 file A.M.S 2010.10.14 2330 0
114 RPGXP Script 스텟포인트투자 1 file A.M.S 2010.10.24 2142 2
113 RPGXP Script 퀘스트스크립트 2 1 file A.M.S 2010.10.24 2511 1
112 RPGXP Script 아이템소지 한계돌파 file A.M.S 2010.10.24 1964 0
111 RPGXP Script 상점에서 상세정보보여주기 file A.M.S 2010.10.24 1818 0
110 RPGXP Script 부드러운화면이동 file A.M.S 2010.10.24 2046 0
109 RPGXP Script 직업명 표시 file A.M.S 2010.10.24 1787 0
108 RPGXP Script 퀘스트스크립트 2 file A.M.S 2010.10.24 2635 1
107 RPGXP Script 아이템소지 한계돌파 file A.M.S 2010.10.24 2248 0
106 RPGXP Script 스텟포인트투자 1 file A.M.S 2010.10.24 2550 2
105 RPGXP Script 상점에서 상세정보보여주기 file A.M.S 2010.10.24 2057 0
104 RPGXP Script 부드러운화면이동 file A.M.S 2010.10.24 2375 0
103 RPGXP Script 직업명 표시 file A.M.S 2010.10.24 2103 0
102 RPGXP Script 그레고리우스력 원리. 1 협객 2011.06.22 2506 0
» RPGXP Script 그레고리우스력 원리. 협객 2011.06.22 2754 0
Board Pagination Prev 1 2 3 4 5 6 7 8 Next
/ 8






[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)