질문과 답변

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
RMVX [RPG VX] 사이드뷰 문제입니다 ㅠㅠ 고글고글 2015.09.07 173
RMVX [RPG VX]전투할때 도망치다 없애는 방법...... 2 KOREA♬♪ 2010.12.20 698
RMXP [RPG XP] 이벤트종료후 캐릭터를 바꾸게하는방법 (일명 전직같은... 전 아직 이런걸 못해서 ㅎㅎ) 1 YT놔이트 2015.08.02 201
RMVX [RPG 만들기 VX]모르는거 질문이요~ 로돌프 2012.01.02 2629
RMVXA [RPGACE)이 스크립트들을 어떻게해야 게임에쓸수있는지 알고싶습니다 2 /(-_ㅡ)ㅡ+ 2016.01.20 451
RMVXA [script?]스킬의 잊음 설정. 1 글쎄,왜 난 적용이 안될까? 2012.06.10 2499
RMVX [Vampyr SBABS 9] 실행이안되네요 1 file 흐르후꾸흐루룩 2012.08.18 1286
[VX ACE] failed to create process 오류 해결 방법 윤초 2015.05.31 311
RMVXA [Vx Ace]게임캐릭터가 죽으면 세이브가 지워지는 스크립트가 있을까요? 1 고등학생니트 2014.03.08 715
RMVX [VX 질문] 사물을 클릭하면 대화창나오는 이벤트 어떻게하나요? 2 file 초보입니다헤헤헤 2013.10.28 1388
RMVXA [VXA] 메뉴창 크기/위치 조절방법 4 file 서로게이트 2013.10.03 1857
RMVXA [VXA] 메뉴창에서 MP바만 지우는 방법 1 서로게이트 2013.10.03 1123
[VXA] 세이브 한글화 2 file 서로게이트 2013.10.04 1438
RMVXA [VXA] 세이브를 4개로 한정하는 방법 1 file 서로게이트 2013.10.03 1180
RMVXA [VXA] 아이템창 스크립트 수정하는 방법이 궁금합니다 1 file 서로게이트 2013.10.03 1709
RMVXA [VXA]플레이어의 속도를 0으로 설정하는 방법? 8 sudoxe 2013.07.17 1087
RMVX [VX] 스크립트로 새로운 이벤트를 생성하는 방법 2 재즈돈 2015.01.16 147
RMVX [vx] 아이템에 치명타확률을 원하는만큼 부여해주는 스크립트 6 애플잼 2013.10.03 1117
RMVX [VX]전투불능 해제가 안되요.. 4 file twoeye 2013.02.17 788
스크립트 사용 RMVX [VX스크립트] KGC패시브스킬, 무기옵션 스크립트 성공하신분. 2 테일즈 2019.03.07 117
Board Pagination Prev 1 ... 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 ... 516 Next
/ 516