赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 0 |
经验 | 0 |
最后登录 | 2024-8-5 |
在线时间 | 3 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 17
- 在线时间
- 3 小时
- 注册时间
- 2024-7-31
- 帖子
- 5
|
5楼
楼主 |
发表于 2024-8-5 14:46:28
|
只看该作者
本帖最后由 18610358578 于 2024-8-5 14:56 编辑
是啊,加了按钮但没出现,我在rmmz_scenes.js里加入了- Scene_Title.prototype.createCommandWindow = function() {
- const background = $dataSystem.titleCommandWindow.background;
- const rect = this.commandWindowRect();
- this._commandWindow = new Window_TitleCommand(rect);
- this._commandWindow.setBackgroundType(background);
- this._commandWindow.setHandler("newGame", this.commandNewGame.bind(this));
- this._commandWindow.setHandler("continue", this.commandContinue.bind(this));
- this._commandWindow.setHandler("options", this.commandOptions.bind(this));
- this._commandWindow.setHandler("gameend", this.commandgameend.bind(this));
- this.addWindow(this._commandWindow);
- };
- Scene_Title.prototype.commandWindowRect = function() {
- const offsetX = $dataSystem.titleCommandWindow.offsetX;
- const offsetY = $dataSystem.titleCommandWindow.offsetY;
- const ww = this.mainCommandWidth();
- const wh = this.calcWindowHeight(4, true);
- const wx = (Graphics.boxWidth - ww) / 2 + offsetX;
- const wy = Graphics.boxHeight - wh - 96 + offsetY;
- return new Rectangle(wx, wy, ww, wh);
- };
- Scene_Title.prototype.commandNewGame = function() {
- DataManager.setupNewGame();
- this._commandWindow.close();
- this.fadeOutAll();
- SceneManager.goto(Scene_Map);
- };
- Scene_Title.prototype.commandContinue = function() {
- this._commandWindow.close();
- SceneManager.push(Scene_Load);
- };
- Scene_Title.prototype.commandOptions = function() {
- this._commandWindow.close();
- SceneManager.push(Scene_Options);
- };
- Scene_Title.prototype.commandgameend = function() {
- SceneManager.exit();
- };
复制代码 但没出现第四个按钮,是我要改成Scene_Title.prototype.commandgameend = function() {
this._commandWindow.close();
SceneManager.push(Scene_exit)再添加一个Scene_exit? |
|