질문과 답변

Extra Form
종류 스크립트 작성

 

 

//-----------------------------------------------------------------------------
// Window_TitleCommand
//
// The window for selecting New Game/Continue on the title screen.

function Window_TitleCommand() {
    this.initialize.apply(this, arguments);
}

Window_TitleCommand.prototype = Object.create(Window_Command.prototype);
Window_TitleCommand.prototype.constructor = Window_TitleCommand;

Window_TitleCommand.prototype.initialize = function() {
    Window_Command.prototype.initialize.call(this, 0, 0);
    this.updatePlacement();
    this.openness = 0;
    this.selectLast();
};

Window_TitleCommand._lastCommandSymbol = null;

Window_TitleCommand.initCommandPosition = function() {
    this._lastCommandSymbol = null;
};

Window_TitleCommand.prototype.windowWidth = function() {
    return 240;
};

Window_TitleCommand.prototype.updatePlacement = function() {
    this.x = (Graphics.boxWidth - this.width) / 2;
    this.y = Graphics.boxHeight - this.height - 96;
};

Window_TitleCommand.prototype.makeCommandList = function() {
    this.addCommand(TextManager.newGame,   'newGame');
    this.addCommand(TextManager.continue_, 'continue', this.isContinueEnabled());
    this.addCommand(TextManager.options,   'options');
};

Window_TitleCommand.prototype.isContinueEnabled = function() {
    return DataManager.isAnySavefileExists();
};

Window_TitleCommand.prototype.processOk = function() {
    Window_TitleCommand._lastCommandSymbol = this.currentSymbol();
    Window_Command.prototype.processOk.call(this);
};

Window_TitleCommand.prototype.selectLast = function() {
    if (Window_TitleCommand._lastCommandSymbol) {
        this.selectSymbol(Window_TitleCommand._lastCommandSymbol);
    } else if (this.isContinueEnabled()) {
        this.selectSymbol('continue');
    }
};
 

 

 

타이틀 메뉴의 스크립트입니다

'옵션'을 지우고 게임 '나가기'를 활성화하고싶은데 스크립트를 어떻게 작성해야 하나요

빨간 부분 건드는거 같은데 잘 모르겠어요

 

 

 

■ 질문전 필독!
  • 질문할 내용이 이 게시판이나 강좌에 이미 있는지 확인합니다.
  • 하나의 게시물에는 하나의 질문만 합니다.
  • 제목은 질문의 핵심 내용으로 작성합니다.
  • 질문 내용은 답변자가 쉽게 이해할 수 있도록 최대한 상세하게 작성합니다.
  • 스크립트의 전문이 필요할 경우 txt 파일 등으로 첨부해 주시기 바랍니다.
  • 답변받은 게시물은 삭제하지 않습니다.
  • 답변이 완료된 경우 해당 답변해주신 분들께 감사의 댓글을 달아줍니다.
    • 처음 오신 분들은 공지 게시물을 반드시 읽어주세요!

※ 미준수시 사전경고 없이 게시물을 삭제합니다.

Comment '1'
  • ?
    무명시절 2021.05.24 13:50
    옵션을 굳이 지워야겠다면 안쓰셔도 돼는데 일단 이거 한번 보실래요?
    https://avangs.info/plugin_mv/1529563?_filter=search&search_target=title_content&search_keyword=%EC%A2%85%EB%A3%8C

List of Articles
종류 분류 제목 글쓴이 날짜 조회 수
공지 묻고 답하기 가이드 습작 2014.06.14 21133
기본툴 사용법 RMMV MV 입문자 이벤트 관련 질문입니다. 4 근거괴 2020.07.02 185
기타 RMMV MV 일본어 이름 입력 플러그인있나요? 설연 2023.08.06 96
플러그인 추천 RMMV MV 인벤토리 변경하는 플러그인이 있을까요? 2 머리큰두두 2023.09.19 121
RMMV MV 이벤트?관련 질문있습니다!! 2 류넷 2018.05.26 138
RMMV MV 이벤트 질문좀 드리고싶어서 글을 올렸습니다. 1 독재자헤르모드 2017.05.26 158
이벤트 작성 RMMV MV 이벤트 모션이 끊겨요 thddo 2023.03.27 97
RMMV mv 이름 표시하는 방법 2 Banwall087 2018.03.25 668
RMMV mv 의상 칩셋 리소스 구할만한 사이트 없나요? REX317 2016.06.08 112
RMMV mv 원경맵 만들고 싶은데 parallaxes 맵 고정하는 방법좀 가르쳐주세요 2 삡코 2015.10.31 407
RMMV mv 오탈자 수정하는중입니다. 1 spome19 2016.04.06 143
RMMV MV 언어 한글로 바꾸는법.. 1 빨간포도 2016.10.14 2171
RMMV MV 아이템의 선택 항목 2 최빛빛 2015.11.28 212
RMMV mv 아이콘 크기 조절 질문 2 file 체력을가르다. 2015.12.19 951
RMMV MV 실행시 combase.dll 파일을 찾을 수 없다고합니다. 3 코나별 2016.04.08 2068
RMMV MV 시작시 화면이 하얗습니다. 2 물달이 2016.02.25 275
기본툴 사용법 RMMV mv 스위치 관하여 4 아렌에 2023.04.28 113
RMMV MV 속성스킬의 데미지를 늘릴 수 없나요? hypatia 2018.03.18 101
RMMV MV 세이브 파일에서 게임 내 데이터 값을 확인할 수 있을까요? 2 아방규 2017.06.29 242
RMMV MV 사이드뷰 전투에서 무기 외형 어떻게 추가하나요? 2 눈팅러 2017.01.11 208
플러그인 사용 RMMV MV 사이드뷰 적 배치 질문..(Feat.Yanfly) 2 BMsoft 2020.12.07 251
Board Pagination Prev 1 ... 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 ... 518 Next
/ 518