질문과 답변

Extra Form


(위 첨부스샷은 VX판으로 제작된 마녀의집입니다)


메뉴창을 첨부된 사진처럼 아래쪽으로 배치하고 사이즈 축소하는법에 대해 알고 싶습니다.


간략하게, 메뉴창의 크기조절과 위치를 조절하는 방법에 대해 알고 싶습니다.

Comment '4'
  • profile
    습작 2013.10.03 20:19
    class Window_MenuStatus < Window_Selectable
      def window_width
        가로넓이
      end
      def window_height
        세로넓이
      end
      def item_max
        표시할 캐릭터수
      end
      def item_height
        (height - standard_padding * 2) / item_max
      end
    end
    class Scene_Menu < Scene_MenuBase
      def create_status_window
        @status_window = Window_MenuStatus.new(X좌표Y좌표)
      end
    end

    위 스크립트를 추가한 다음 붉게 표시한 부분만 수정해주시면 되리라 생각됩니다. 만일 오류가 있거나 하거든 피드백 주세요.
  • ?
    서로게이트 2013.10.03 21:28
    감사합니다! 그럼... 위에 소지품, 불러오기 창 역시 비슷하게 수정하면 되는건가요?
    대략 이런식으로...

    class Window_MenuCommand < Window_Command
    def window_width
    가로넓이
    end
    def window_height
    세로넓이
    end
    def item_max
    표시할 수
    end
    def item_height
    (height - standard_padding * 2) / item_max
    end
    end
    class Scene_Menu < Scene_MenuBase
    def create_Command_window
    @Command_window = Window_MenuCommand.new(X좌표, Y좌표)
    end
    end
  • profile
    습작 2013.10.03 22:29
    class Window_MenuCommand < Window_Command
      def initialize
        super(X좌표,Y좌표)
        select_last
      end
      def window_width
        return 가로넓이
      end
      def make_command_list
        add_main_commands
      end
      def add_main_commands
        add_command(Vocab::item,   :item,   main_commands_enabled)
        add_command(Vocab::continue, :continue, continue_enabled)
      end
      def continue_enabled
        DataManager.save_file_exists?
      end
    end
    class Scene_Menu < Scene_MenuBase
      def create_command_window
        @command_window = Window_MenuCommand.new
        @command_window.set_handler(:item,      method(:command_item))
        @command_window.set_handler(:continue,  method(:command_continue))
        @command_window.set_handler(:cancel,    method(:return_scene))
      end
      def command_continue
        SceneManager.call(Scene_Load)
      end
    end

    커맨드 윈도우 수정은 이정되면 되지 않을까 싶네요.
  • ?
    서로게이트 2013.10.03 23:15
    아래 3개의 게시글을 포함하여 여러 스크립트 수정 감사드립니다! 너무너무 감사드려요! (*TVT*) 정말 감사드립니다

List of Articles
종류 분류 제목 글쓴이 날짜 조회 수
공지 묻고 답하기 가이드 습작 2014.06.14 12448
RMVXA 타이틀 1 file 람초와아이들 2017.01.04 173
RMVXA 이거...혹시 툴 버그인가요? 1 금목걸이 2017.01.04 99
RMVXA 캐릭터칩 적용과 만들기에대해 알려주세요!! 1 file 리렐리 2016.12.31 327
RMVXA RPG메이커 VX ace ,그래픽 적용 2 file 초보주의 2016.12.30 305
RMVXA RPG메이커 VX ace 달리는 키변경 2 초보주의 2016.12.29 156
RMVXA 스크립트(RGSS3) 관련 질문 file nekio_o 2016.12.29 127
RMVXA [해결완료] 오른쪽에 이미지로 인터페이스를 깔아두고 맵스크롤을 고정하고싶은데요 6 file 코코아밀크 2016.12.28 338
RMVXA 캐릭터가 방 나갔다 들어오면 증발합니다,,, 3 요맘때 2016.12.27 107
RMVXA rpg vx ace 이동 오류 2 보라바다 2016.12.27 367
RMVXA 다음 공격을 강화하는 스킬 아무개 2016.12.26 105
RMVXA 파티에는 있지만 전투에 참가하지 않는 멤버를 만들 수 있나요? 2 중립국 2016.12.26 195
RMVXA 스크립트 한글화 후, 전투 중 '스킬'글자가 생성되지 않습니다. 2 file 봉지냥 2016.12.25 237
RMVXA 직업 최대 HP 제한 푸는법 2 귀성 2016.12.24 202
RMVXA 게임오버 이후 대화창 8 GyoBe 2016.12.22 232
RMVXA 한국어 표시 방법 1 file GyoBe 2016.12.21 116
RMVXA 따라다니는 캐릭터 생성 3 file GyoBe 2016.12.20 215
RMVXA [동영상,사진첨부] 파티원 문제 1 file GyoBe 2016.12.20 145
RMVXA rpgvxace 게임시작화면 질문입니다 1 file 견하 2016.12.18 206
RMVXA 캐릭터칩을 만들었는데 1 file GyoBe 2016.12.18 164
RMVXA 크랙방지를 위한 프로그램 뭐있나요? 유즈키 2016.12.18 113
Board Pagination Prev 1 ... 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 ... 149 Next
/ 149