게임에서 save를 했는데..그림과 같은 오류가 나오는데..

by 레파 posted Sep 28, 2005
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

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


왜 이렇게 나오는지좀 알려주세요..
제 WIndow_Help 스크립트입니다...


#==============================================================================
# ■ Window_Help
#------------------------------------------------------------------------------
#  스킬이나 아이템의 설명, 엑터의 스테이터스등을 표시하는 윈도우입니다.
#==============================================================================

class Window_Help < Window_Base
  #--------------------------------------------------------------------------
  # ● 오브젝트 초기화
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 640, 64)
    self.contents = Bitmap.new(width - 32, height - 32)
  end
  #--------------------------------------------------------------------------
  # ● 텍스트 설정
  #     text  : 윈도우에 표시하는 캐릭터 라인
  #     align : alignment (0..왼쪽 가지런히 해 1..centering, 2..오른쪽맞춤)
  #--------------------------------------------------------------------------
  def set_text(text, align = 0)
    # 텍스트와 alignment의 적어도 한편이 전회와 다른 경우
    if text != @text or align != @align
      # 텍스트를 재묘화
      self.contents.clear
      self.contents.font.color = normal_color
      self.contents.draw_text(4, 0, self.width - 40, 32, text, align)
      @text = text
      @align = align
      @actor = nil
    end
    self.visible = true
  end
  #--------------------------------------------------------------------------
  # ● 엑터 설정
  #     actor : 스테이터스를 표시하는 엑터
  #--------------------------------------------------------------------------
  def set_actor(actor)
    if actor != @actor
      self.contents.clear
      draw_actor_name(actor, 4, 0)
      draw_actor_state(actor, 140, 0)
      draw_actor_hp(actor, 284, 0)
      draw_actor_sp(actor, 460, 0)
      @actor = actor
      @text = nil
      self.visible = true
    end
  end
  #--------------------------------------------------------------------------
  # ● 에너미 설정
  #     enemy : 이름과 스테이트를 표시하는 에너미
  #--------------------------------------------------------------------------
  def set_enemy(enemy)
    text = enemy.name
    state_text = make_battler_state_text(enemy, 112, false)
    if state_text != ""
      text += "  " + state_text
    end
    set_text(text, 1)
  end
end

Articles

1 2 3 4 5 6 7 8 9 10