赞 | 1 |
VIP | 0 |
好人卡 | 0 |
积分 | 4 |
经验 | 0 |
最后登录 | 2025-5-13 |
在线时间 | 38 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 370
- 在线时间
- 38 小时
- 注册时间
- 2025-2-15
- 帖子
- 25
|
Scene_Map.prototype.createMenuButton = function() {
this._menuButton = new Sprite_Button("menu");
this._menuButton.x = Graphics.boxWidth - this._menuButton.width - 4;
this._menuButton.y = this.buttonY();
this._menuButton.visible = false;
this.addWindow(this._menuButton);
};
上面这段好像是点击菜单的函数,
Scene_Map.prototype.callMenu = function() {
SoundManager.playOk();
SceneManager.push(Scene_Menu);
Window_MenuCommand.initCommandPosition();
$gameTemp.clearDestination();
this._mapNameWindow.hide();
this._waitCount = 2;
};
上面这段是检测到呼叫菜单就要执行什么指令的函数,
下面这段好像是呼叫菜单的函数,这几段都在rmmz_scenes.js这里。说不定可以使用这些函数来写。
Scene_Map.prototype.isMenuCalled = function() {
return Input.isTriggered("menu") || TouchInput.isCancelled();
}; |
|