질문과 답변

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 12392
라이선스 RMMV RPG MAKER 관련 질문 2 Mop 2017.07.03 300
기타 rpg maker 구매 추천 Mop 2018.01.12 230
라이선스 툴선택 RPG MAKER 시리즈 소재의 저작권에 대해서 3 머그빵 2014.03.20 1539
툴선택 rpg maker 싼 버전들 1 이겸 2016.08.18 190
기타 툴선택 rpg maker 중 MV와 MZ중 어떤게 나을까요? 1 이매망량 2023.01.29 167
기타 RPG maker 질문 1 이겸 2016.07.10 252
툴선택 Rpg makes vx ace lite 몬스터 기능 하루0117 2018.06.03 83
RMMV rpg marker mv 만들기 툴 2 드래곤규 2015.10.26 235
라이선스 RMMV RPG MV DLC 안에 있는 플러그인이나 소재들 게임 만들때 써도 되는 거죠? 3 천무부 2019.02.12 180
기타 기타 rpg mv 게임파일 뜯을수 없을까요? 1 아쳐 2020.01.13 437
플러그인 사용 RMMV RPG MV 대화창 크기 2 file 나나블랑 2020.06.17 613
RMMV rpg mv 맵칩,타일셋 불러오기.경로 아시는분.. 1 은빙 2016.05.31 482
RMMV rpg mv 몬스터 SV 제작 규칙 3 file 해킹당한해커 2017.11.28 511
RMMV rpg mv 몬스터 머리 위에 네모... 8 럼블조아 2018.05.26 197
RMMV rpg mv 상점의 화폐 종류를 바꾸고 싶어요 1 럼블조아 2018.05.27 284
맵배치 RMMV rpg mv 새로운 타일맵 추가가 안됩낟 1 소용돌이은하에서사는자 2020.08.17 104
RMMV rpg mv 자바스크립트 초보인데요 ㅠㅠ 2 레고2 2016.05.02 628
RMMV RPG MV 전투중 오류문구.. 자바스크립트관련 1 로브남 2016.09.06 235
RMMV RPG MV 전투중 특정스킬 사용시 렉발생(프레임드랍) 1 로브남 2018.06.16 794
RMMV RPG MV 질문하나 하겠습니다 선배님들(보상있음) 6 하운뮨1 2018.10.06 319
Board Pagination Prev 1 ... 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 ... 516 Next
/ 516