질문과 답변

Extra Form

사진에 보면 숫자가 크면 글씨랑 겹치게 되는데 그 숫자를 한칸 아래로 뛰어서 표시하는 방법이있을거같은데 스크립트를 볼줄 몰라서 이렇게 질문 올립니다.

스크립트 : #==============================================================================
# ■ Window_Fame
#------------------------------------------------------------------------------
#  메뉴 화면에서 명성치를 표시하는 윈도우입니다.
#==============================================================================
#http://rainsy.tistory.com
class Window_Fame < Window_Base
  #-----------------------------------------------------------------------------
  # ● 오브젝트 초기화
  #-----------------------------------------------------------------------------
  def initialize(x, y)
#------------------------------------------------------------------------------
# ● 커스터마이즈
#------------------------------------------------------------------------------
    @ms = "헌터포인트"  # 입력된 문자가 표시됩니다.
    @var = 6            # 입력된 숫자가 명성치로 사용됩니다.
#------------------------------------------------------------------------------
    super(x, y, 160, WLH + 32)
    self.contents = Bitmap.new(width - 32, height - 32)
    refresh
  end
  #--------------------------------------------------------------------------
  # ● 리프레쉬
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    self.contents.font.color = system_color
    self.contents.draw_text(0, -4, 120, 32, @ms)
    self.contents.font.color = normal_color
    self.contents.draw_text(0, -4, 120, 32, sprintf("%d", $game_variables[@var]), 2)
  end
end

 

 

  #==============================================================================
  # ■ Scene_Menu
  #------------------------------------------------------------------------------
  # 메뉴 화면의 처리를 실시하는 클래스입니다.
  #==============================================================================
  class Scene_Menu < Scene_Base
  #--------------------------------------------------------------------------
  # ● 오브젝트 초기화
  #     menu_index : 커멘드의 커서 초기 위치
  #--------------------------------------------------------------------------
  def initialize(menu_index = 0)
    @menu_index = menu_index
  end
  #--------------------------------------------------------------------------
  # ● 개시 처리
  #--------------------------------------------------------------------------
  def start
    super
    create_menu_background
    create_command_window
    @gold_window = Window_Gold.new(0, 360)
    @status_window = Window_MenuStatus.new(160, 0)
    @fame_window = Window_Fame.new(0, 304)
  end
  #--------------------------------------------------------------------------
  # ● 종료 처리
  #--------------------------------------------------------------------------
  def terminate
    super
    dispose_menu_background
    @command_window.dispose
    @gold_window.dispose
    @status_window.dispose
    @fame_window.dispose
  end
  #--------------------------------------------------------------------------
  # ● 프레임 갱신
  #--------------------------------------------------------------------------
  def update
    super
    update_menu_background
    @command_window.update
    @gold_window.update
    @status_window.update
    if @command_window.active
      update_command_selection
    elsif @status_window.active
      update_actor_selection
    end
  end
  #--------------------------------------------------------------------------
  # ● 커멘드 윈도우의 작성
  #--------------------------------------------------------------------------
  def create_command_window
    s1 = Vocab::item
    s2 = Vocab::skill
    s3 = Vocab::equip
    s4 = Vocab::status
    s5 = Vocab::save
    s6 = Vocab::game_end
    @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6])
    @command_window.index = @menu_index
    if $game_party.members.size == 0          # 파티 인원수가 0 명의 경우
      @command_window.draw_item(0, false)     # 아이템을 무효화
      @command_window.draw_item(1, false)     # 스킬을 무효화
      @command_window.draw_item(2, false)     # 장비를 무효화
      @command_window.draw_item(3, false)     # 스테이터스를 무효화
    end
    if $game_system.save_disabled             # 세이브 금지의 경우
      @command_window.draw_item(4, false)     # 세이브를 무효화
    end
  end
  #--------------------------------------------------------------------------
  # ● 커멘드 선택의 갱신
  #--------------------------------------------------------------------------
  def update_command_selection
    if Input.trigger?(Input::B)
      Sound.play_cancel
      $scene = Scene_Map.new
    elsif Input.trigger?(Input::C)
      if $game_party.members.size == 0 and @command_window.index < 4
        Sound.play_buzzer
        return
      elsif $game_system.save_disabled and @command_window.index == 4
        Sound.play_buzzer
        return
      end
      Sound.play_decision
      case @command_window.index
      when 0      # 아이템
        $scene = Scene_Item.new
      when 1,2,3  # 스킬, 장비, 스테이터스
        start_actor_selection
      when 4      # 세이브
        $scene = Scene_File.new(true, false, false)
      when 5      # 게임 종료
        $scene = Scene_End.new
      end
    end
  end
  #--------------------------------------------------------------------------
  # ● 액터 선택의 개시
  #--------------------------------------------------------------------------
  def start_actor_selection
    @command_window.active = false
    @status_window.active = true
    if $game_party.last_actor_index < @status_window.item_max
      @status_window.index = $game_party.last_actor_index
    else
      @status_window.index = 0
    end
  end
  #--------------------------------------------------------------------------
  # ● 액터 선택의 종료
  #--------------------------------------------------------------------------
  def end_actor_selection
    @command_window.active = true
    @status_window.active = false
    @status_window.index = -1
  end
  #--------------------------------------------------------------------------
  # ● 액터 선택의 갱신
  #--------------------------------------------------------------------------
  def update_actor_selection
    if Input.trigger?(Input::B)
      Sound.play_cancel
      end_actor_selection
    elsif Input.trigger?(Input::C)
      $game_party.last_actor_index = @status_window.index
      Sound.play_decision
      case @command_window.index
      when 1  # 스킬
        $scene = Scene_Skill.new(@status_window.index)
      when 2  # 장비
        $scene = Scene_Equip.new(@status_window.index)
      when 3  # 스테이터스
        $scene = Scene_Status.new(@status_window.index)
      end
    end
  end
end

 

이거인데 어떻게 바꿔야 숫자가 밑으로 내려갈까요? ㅠㅠ

Comment '2'
  • profile
    습작 2013.05.01 16:44

    class Window_Fame < Window_Base
      def initialize(x, y)
        @ms = "헌터포인트"
        @var = 6
        super(x, y - WLH, 160, WLH * 2 + 32)

        self.contents = Bitmap.new(width - 32, height - 32)
        refresh
      end
      def refresh
        self.contents.clear
        self.contents.font.color = system_color
        self.contents.draw_text(0, -4 + WLH, 120, 32, @ms)

        self.contents.font.color = normal_color
        self.contents.draw_text(0, -4, 120, 32, sprintf("%d", $game_variables[@var]), 2)
      end
    end


    수고하세요.^^
  • ?
    으은 2013.05.01 16:49
    감사합니다!!

List of Articles
종류 분류 제목 글쓴이 날짜 조회 수
공지 묻고 답하기 가이드 습작 2014.06.14 12446
RMVXA 파티원이 보이지 않게 하고싶습니다. 2 tiowd 2013.05.05 979
RMVXA rpg만들기 vx ace에서 이동가능,불가능설정 1 푸른태양 2013.05.04 877
RMVX 대사에서 미사오나 매드파더처럼 대화창 설정 어떻게 하나요? 3 gaeku 2013.05.04 1243
RMVX 캐릭터 오류 2 file 비둘디 2013.05.04 745
RMVXA 벽타일이 뚫립니다. 5 이렌 2013.05.04 859
RMVXA 아이템을 소지중일때 그래픽이 플레이어 따라다니는것 이렌 2013.05.04 933
RMVX 스토리 진행멘트(?) 화면 2 file KingRynn 2013.05.03 917
vxa에서 데이터베이스 한글패치 실행 하였는데 한글이 제대로 출력되지 않습니다. 2 C3CDER 2013.05.03 855
RMXP 책장을 건드리면 문을 막고있는 이벤트가 옆으로 비키는 것 11 괴생명체 2013.05.03 1238
RMVX ziifee's Wait Gauge Battle 사용시 궁금점 피망군 2013.05.02 596
RMVX 제작된 게임 실행화면 변경 7 file KingRynn 2013.05.02 684
RMVX 대화중일때 npc의 움직임 1 피망군 2013.05.02 648
기타 xyz파일은 어떻게 수정하나요? 2 emblock 2013.05.01 1424
RMVX advenced text system 3.0c 스크립트를 사용하는데요... 1 피망군 2013.05.01 544
RMVXA rpgvxa MIDI 음원 다른걸 사용하는 것 같네요. 2 코나별 2013.05.01 1001
RMVXA rpgvxa 스탯중에 운은 정확히 무슨 역할을하나요? 1 코나별 2013.05.01 947
RMVX 메뉴 조작 스크립트 변경방법에대해 궁금합니다 (스크립트 첨부) 2 file 으은 2013.05.01 690
기타 rpg만들기로 게임만들때 2 쟈늑 2013.05.01 796
기타 액터간의 전투 1 레락 2013.05.01 634
RMVXA 이벤트 후 그대로 멈춰버리네요..[수정 : 다른 부분 이벤도 추가] 3 file 읭...내이름이뭐지 2013.04.30 706
Board Pagination Prev 1 ... 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 ... 516 Next
/ 516