XP 스크립트

뭔 이상한 말이 잔뜩 써있네;;

 

 

 

 

 

 

 

 

 

# 寃덇쾫寃?XRXS20. ?湲욊링堉??묎툊洹산튆湲ㅺ툊 ver.1.5 寃덇쾫寃?
# by 沅멸톭, ?롫맧 ?る콠

#==============================================================================
# 嫄?湲뉕툣??洹쎄툤?洹쎄튆湲?
#==============================================================================
module XRXS20
  # 湲귢렌源쏄륵湲귥겇洹??묎땅洹?
  WINDOW_FRAME = true
  #
  # 湲꿸툍源쏄르
  #
  FONT_NAME  = "굴림"
  FONT_COLOR = Color.new(255, 255, 0, 255)
  FONT_SIZE  = 18
  #
  # [??묐쟾??
  #
  TIME_FADEIN  =  8 # 湲꿸툋?湲ㅺ렘源?
  TIME_STOP    = 64 # ??묐캙?
  TIME_FADEOUT = 24 # 湲꿸툋?湲ㅺ렉湲귢르
end
  #--------------------------------------------------------------------------
  # 湲↔툕湲싰르由?
  #--------------------------------------------------------------------------
class Window_Map_Name < Window_Base
  def text_model(text)
    return "" + text + "  "
  end
end
#
#[??]
# ?湲욊링堉밴떻癒⑸쾯沅멸릭源뤾툎湲ㅺ콓.嫄먭텞沅뉕래沅?湲욊링堉밴랭??묎땁洹뤾때洹り컘
#
#==============================================================================
# 嫄?Window_Map_Name_Space
#==============================================================================
class Window_Map_Name_Space < Window_Base
  #--------------------------------------------------------------------------
  # 嫄?湲녾립湲숆툋湲뤾르猷딅뵔??
  #--------------------------------------------------------------------------
  def initialize(x, y, w, h)
    super(x-16, y-16, w+32, h+32)
    self.contents = Bitmap.new(w, h)
    self.opacity = 0
    @align = 2
  end
  #--------------------------------------------------------------------------
  # 嫄?湲꿸툍源쏄르
  #--------------------------------------------------------------------------
  def font
    return self.contents.font
  end
  #--------------------------------------------------------------------------
  # 嫄?鍮믩읅洹⑸짆沅?
  #--------------------------------------------------------------------------
  def draw_text(text)
    self.contents.clear
    return if text.nil?
    #r = self.contents.rect
    #self.contents.draw_text(r, text, 1)
    x = 4
    y = 0
    width = self.contents.width
    text_color = self.contents.font.color.dup
    self.contents.font.color = Color.new(  0,  0,  0, 192)
    self.contents.draw_text(x+2, y+2, width, 32, text, @align)
    self.contents.font.color = Color.new( 64, 64, 64, 192)
    self.contents.draw_text(x-1, y-1, width, 32, text, @align)
    self.contents.draw_text(x+1, y-1, width, 32, text, @align)
    self.contents.draw_text(x-1, y+1, width, 32, text, @align)
    self.contents.draw_text(x+1, y+1, width, 32, text, @align)
    self.contents.font.color = text_color
    self.contents.draw_text(x,   y,   width, 32, text, @align)
    self.visible = true
  end
end
#==============================================================================
# 嫄?Window_Map_Name
#------------------------------------------------------------------------------
# ??湲욊링堉밴랭??묎땅洹↔툊洹산튆湲ㅺ툊沅녠땅媛?
#==============================================================================
class Window_Map_Name < Window_Base
  #--------------------------------------------------------------------------
  # 嫄??븍몠洹쎄튆湲?源쏄툣鍮얜╋
  #--------------------------------------------------------------------------
  attr_accessor :text
  #--------------------------------------------------------------------------
  # 嫄?湲녾립湲숆툋湲뤾르猷딅뵔
  #--------------------------------------------------------------------------
  def initialize
    super(152, 8, 480, 40)
    self.opacity = 0
    self.visible = false
    @space = Window_Map_Name_Space.new(self.x, self.y+4, self.width, self.height-8)
    @space.font.name  = XRXS20::FONT_NAME
    @space.font.color = XRXS20::FONT_COLOR
    @space.font.size  = XRXS20::FONT_SIZE
    @space.font.bold  = true
    # 猷딅뵔??
    @fadein_time    = 0
    @showing_time   = 0
    @fadeouut_time  = 0
  end
  #--------------------------------------------------------------------------
  # 嫄?湲↔툕湲싰르癒좊?
  #     text  : 湲귢렌源쏄륵湲귢떳??묎땅洹〓퉺?살€?
  #--------------------------------------------------------------------------
  def set_text(text)
    if text.nil? or text.empty? or text =~ /^./
      @showing_time = -1
      @text = ""
      self.contents_opacity = 0
      self.visible = false
      @space.visible = false
    else
      # 癒좊?
      @text = text_model(text)
      # ?濡?
      @fadein_time    = XRXS20::TIME_FADEIN
      @fadein_amount  = (255.0 / XRXS20::TIME_FADEIN).ceil
      self.width = @space.contents.text_size(@text).width + 24
      @x_indent = 632 - self.width
      self.x = @x_indent - @fadein_time
      @space.draw_text(@text)
      self.visible = XRXS20::WINDOW_FRAME
    end
  end
  #--------------------------------------------------------------------------
  # 嫄??띕볐
  #--------------------------------------------------------------------------
  def dispose
    @space.dispose
    super
  end
  #--------------------------------------------------------------------------
  # 嫄?湲꿸퉺???쏅Ⅷ
  #--------------------------------------------------------------------------
  def update
    #return if @showing_time < 0
    #
    # 湲꿸툋?湲ㅺ렘源?
    #
    if @fadein_time > 0
      @fadein_time -= 1
      @space.contents_opacity += @fadein_amount
      self.opacity = [self.opacity + @fadein_amount*5/8, 160].min
      self.x = @x_indent - @fadein_time
      @space.x = self.x - (512-self.width)
      if @fadein_time == 0
        @showing_time = XRXS20::TIME_STOP
      end
    #
    # 誘낅쪈???
    #
    elsif @showing_time > 0
      @showing_time -= 1
      if @showing_time == 0
        @fadeouut_time  = XRXS20::TIME_FADEOUT
        @fadeout_amount = (255.0 / XRXS20::TIME_FADEOUT).ceil
      end
    #
    # 湲꿸툋?湲ㅺ렉湲귢르
    #
    elsif @fadeouut_time > 0
      @fadeouut_time -= 1
      self.opacity -= @fadeout_amount * 5/8
      @space.contents_opacity -= @fadeout_amount
      self.x = (@x_indent + XRXS20::TIME_FADEOUT) - @fadeouut_time
      @space.x = self.x - (512-self.width)
      if @fadeouut_time == 0
        self.visible = false
        @space.visible = false
      end
    end
  end
end
#==============================================================================
# 嫄?Scene_Map
#==============================================================================
class Scene_Map
  #--------------------------------------------------------------------------
  # 嫄??湲욊링堉밸즸?뽯뤈
  #--------------------------------------------------------------------------
  def initialize_map_name_window(text = nil)
    if @map_name_window.nil?
      @map_name_window = Window_Map_Name.new
      @map_name_window.text = text if not text.nil?
    end
  end
  #--------------------------------------------------------------------------
  # 嫄?湲쎄렘源쏅즷肉?
  #--------------------------------------------------------------------------
  alias xrxs20_main main
  def main
    # 萸ㅻ섰湲귢렌源쏄륵湲귢랭?용쭫
    initialize_map_name_window
    # 戮j땅
    xrxs20_main
    # 萸ㅻ섰湲귢렌源쏄륵湲귢랭?띕볐
    @map_name_window.dispose
  end
  #--------------------------------------------------------------------------
  # 嫄?湲꿸퉺???쏅Ⅷ
  #--------------------------------------------------------------------------
  alias xrxs20_update update
  def update
    # 萸ㅻ섰湲귢렌源쏄륵湲귢떻?쏅Ⅷ
    @map_name_window.update
    # ?곴톪戮j땅
    xrxs20_update
  end
  #--------------------------------------------------------------------------
  # 嫄?湲듦퉺洹쎄퉪?沅삳ㅎ猷뗫뙴踰?
  #--------------------------------------------------------------------------
  alias xrxs20_transfer_player transfer_player
  def transfer_player
    # ?곴톪戮j땅
    xrxs20_transfer_player
    # 萸ㅻ섰湲귢렌源쏄륵湲귢떻?쏅Ⅷ
    @map_name_window.set_text($game_map.name)
  end
end
#==============================================================================
# 嫄?Game_Map
#==============================================================================
class Game_Map
  #--------------------------------------------------------------------------
  # 嫄??湲욊링堉밴랭濡?꺅
  #--------------------------------------------------------------------------
  def name
    $map_infos = load_data("Data/MapInfos.rxdata") if $map_infos.nil?
    $map_infos[@map_id].name
  end
end


 

Who's 캉쿤

?

배고파요ㅠㅜ

전 댓글을 먹고 살아요ㅠㅜ

댓글 하나만요ㅠㅜ

Comment '6'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
701 기타 쓸 용도가 없지만 마비노기 게임 만들 때 좋죠[장작스크립트] 5 백호 2009.02.22 2407
700 기타 레벨을 표시해주는 스크립트 5 백호 2009.02.22 2403
699 오디오 CG, 음악 감상 스크립트 [한글화] 11 file 백호 2009.02.21 2403
698 화면에 축소된 맵을 표시하는 스크립트 7 file 백호 2009.02.21 2394
697 이동 및 탈것 텔레포트 스크립트. 11 XP광 2010.01.12 2392
696 파티 파티교환 시스템...이걸로 순서 교체도 가능할 듯... 9 file 백호 2009.02.21 2392
695 HUD HUD Menu 1.2 by Raziel 6 file 백호 2009.02.22 2390
694 기타 거울에 캐릭 반사 20 ok하승헌 2010.02.18 2388
» HUD 맵이름표시 6 캉쿤 2011.09.14 2379
692 전투 전투후 경험치 분배와 레벨업시 HP/SP 전회복 15 백호 2009.02.21 2374
691 전투 Active Time Battle 2.57 by パラ犬 6 file 백호 2009.02.22 2370
690 이동 및 탈것 이거만드느라 똥줄탓다!(는뻥) 초간단스크립트 10 *PS인간 2009.02.10 2369
689 이동 및 탈것 하이 대쉬 시스템 ver.1.0 15 백호 2009.02.22 2364
688 메뉴 자세항 개인 상태화면 8 아방스 2009.01.12 2361
687 메뉴 L's Custom Menu #3: 1인용 메뉴 Revision 1 3 Alkaid 2010.09.12 2360
686 메뉴 메뉴 변경 스크립트 2 file 백호 2009.02.21 2359
685 장비 에러 안나는 장비창 전능력 표시 스크립트... 3 백호 2009.02.21 2352
684 메뉴 자작 커스텀 메뉴(데모 첨부) 3 백호 2009.02.22 2347
683 점프 대쉬 스크립트 11 WMN 2008.03.17 2345
682 메뉴 Breath Of Fire 스타일의 메뉴 3 file 백호 2009.02.21 2342
Board Pagination Prev 1 ... 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 ... 52 Next
/ 52