질문과 답변

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 12441
RMVXA [VXA] 아이템창 스크립트 수정하는 방법이 궁금합니다 1 file 서로게이트 2013.10.03 1709
RMVXA [VXA] 세이브를 4개로 한정하는 방법 1 file 서로게이트 2013.10.03 1180
[VXA] 세이브 한글화 2 file 서로게이트 2013.10.04 1438
RMVXA [VXA] 메뉴창에서 MP바만 지우는 방법 1 서로게이트 2013.10.03 1123
RMVXA [VXA] 메뉴창 크기/위치 조절방법 4 file 서로게이트 2013.10.03 1857
RMVX [VX 질문] 사물을 클릭하면 대화창나오는 이벤트 어떻게하나요? 2 file 초보입니다헤헤헤 2013.10.28 1388
RMVXA [Vx Ace]게임캐릭터가 죽으면 세이브가 지워지는 스크립트가 있을까요? 1 고등학생니트 2014.03.08 715
[VX ACE] failed to create process 오류 해결 방법 윤초 2015.05.31 311
RMVX [Vampyr SBABS 9] 실행이안되네요 1 file 흐르후꾸흐루룩 2012.08.18 1286
RMVXA [script?]스킬의 잊음 설정. 1 글쎄,왜 난 적용이 안될까? 2012.06.10 2499
RMVXA [RPGACE)이 스크립트들을 어떻게해야 게임에쓸수있는지 알고싶습니다 2 /(-_ㅡ)ㅡ+ 2016.01.20 451
RMVX [RPG 만들기 VX]모르는거 질문이요~ 로돌프 2012.01.02 2629
RMXP [RPG XP] 이벤트종료후 캐릭터를 바꾸게하는방법 (일명 전직같은... 전 아직 이런걸 못해서 ㅎㅎ) 1 YT놔이트 2015.08.02 201
RMVX [RPG VX]전투할때 도망치다 없애는 방법...... 2 KOREA♬♪ 2010.12.20 698
RMVX [RPG VX] 사이드뷰 문제입니다 ㅠㅠ 고글고글 2015.09.07 173
RMVX [RPG VX] 배틀씬 관련 질문. DRK-Maker 2013.02.14 521
기타 [RPG VX] 맵을 제작했는데 캐릭터 위치 X값, Y값을 어떻게 확인하는거죠?? 7 에담츠키 2014.12.10 560
RMVXA [RPG VXA] 액터가 이벤트에 접촉없이 문장이 스스로 나오게 하는법 좀 부탁드려요 6 file 허곰탱 2014.05.08 689
RMVXA [rpg vx ace]타이틀 메뉴 이미지 바꾸기 2 조각조각 2014.06.22 2727
RMVXA [rpg vx ace]조건분기 이용법... 2 조각조각 2014.02.08 884
Board Pagination Prev 1 ... 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 ... 516 Next
/ 516