질문과 답변

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 21148
RMMV [스크립트] 앞부분 padding과 가운데 정렬 1 file 몽롱하다 2018.01.22 175
기본툴 사용법 RMMV ㅜㅜ 왕초보입니다 도와주세요 <타일 제거>하는방법. 5 새해 2019.12.19 175
RMMV 리소스 매니저에는 bgm이 들어가 있는데 사운드 테스트에는 없어요 ㅠㅠ 2 러브굿 2018.06.02 176
RMMV MV 리소스 가져다쓰면 짤리는데 1 file 잠행인 2017.05.03 176
RMMV 프로젝트 파일을 만들면 생겨나는 원본 소스들을 지워도 괜찮을까요? 3 file 아가미가미 2017.11.02 176
이벤트 작성 RMMV 캐릭터한테 아이템을 시작부터 쥐어주고 싶은데 2 두돧둗 2019.07.08 176
기타 RMMV 메뉴 조작 file .-. 2020.10.19 176
에러 해결 RMMV 스크립트를 실행할 때에, 한글이 들어가면 깨집니다.. 4 file 빠나나나 2024.10.29 176
RMMV RPGMV 스크립트를 이용한 세이브 삭제 겜제작광 2017.06.08 177
RMMV 캐릭터를 만들어서 넣었는데 적용이 안되네요ㅠ 3 file 푸른랩소디 2018.07.21 177
RMMV 거의 수학 계산적인 부분으로 특정 량의 방어 무시 식은 어떻게 되나요? 7 RoyalNavy 2018.07.04 177
RMMV 제가 처음 RPGMV를 처음해서 그런데 음악은 어떻게 넣나요??? 2 휴론 2016.11.13 177
RMMV 한글 패치 글꼴 질문 1 잠행인 2016.03.20 177
RMMV 일정 씬 이하 메뉴 호출 금지 4 FNS키리토 2016.04.20 177
플러그인 사용 RMMV 오렌지 오버레이 플러그인 사용법 질문 2 chiithecat 2019.09.28 177
플러그인 추천 RMMV 캐릭터를 커지게 해주는 플러그인 없나요? 2 JDG 2020.05.22 177
기타 RMMV 슈퍼마리오 처럼 횡스크롤 액션 게임을 만들려고 하는데.... 2 JDG 2020.06.28 177
RMMV 게임 시작을 파판6 오프닝 처럼 만들고 싶습니다. 2 시우A 2017.09.21 178
RMMV 조건분기문제입니다. 4 푸른바람avangs 2017.10.09 178
RMMV NPC가 점프하면서 주인공 쫓기 7 고르고르고 2018.08.10 178
Board Pagination Prev 1 ... 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ... 83 Next
/ 83