| 赞 | 4 |
| VIP | 0 |
| 好人卡 | 0 |
| 积分 | 14 |
| 经验 | 0 |
| 最后登录 | 2026-5-22 |
| 在线时间 | 159 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 1444
- 在线时间
- 159 小时
- 注册时间
- 2025-2-15
- 帖子
- 74
|
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();
}; |
|