Project1
标题:
请问如何用脚本进入该界面(技能、装备命令的角色选择)
[打印本页]
作者:
wmzmtz
时间:
2020-7-25 17:23
标题:
请问如何用脚本进入该界面(技能、装备命令的角色选择)
起因是这样的,想用MV做安卓游戏,但是发现默认的系统菜单,用安卓操作起来太麻烦(菜单层级太多,点击的字又小)
于是就用了YEP_PictureCommonEvents插件,做了这样一个UI,可以点右上方的按钮直接进入存档、道具、技能、装备等界面
(, 下载次数: 82)
上传
点击文件名下载附件
拿进入技能界面为例,我知道直接进入技能界面的脚本是SceneManager.push(Scene_Skill);
但这个脚本就是直接进入1号队友的技能了,而我不想进去这么快,想先经历一个选人的界面,如图所示
(, 下载次数: 87)
上传
点击文件名下载附件
所以请问进入上图界面的脚本是什么?我能找到js文件中的脚本是这一段,但是这一个this接着一个this,实在不会改动啊
//创建命令窗口
Scene_Menu.prototype.createCommandWindow = function() {
this._commandWindow = new Window_MenuCommand(0, 0);
this._commandWindow.setHandler('item', this.commandItem.bind(this));
this._commandWindow.setHandler('skill', this.commandPersonal.bind(this));
this._commandWindow.setHandler('equip', this.commandPersonal.bind(this));
this._commandWindow.setHandler('status', this.commandPersonal.bind(this));
this._commandWindow.setHandler('formation', this.commandFormation.bind(this));
this._commandWindow.setHandler('options', this.commandOptions.bind(this));
this._commandWindow.setHandler('save', this.commandSave.bind(this));
this._commandWindow.setHandler('gameEnd', this.commandGameEnd.bind(this));
this._commandWindow.setHandler('cancel', this.popScene.bind(this));
this.addWindow(this._commandWindow);
};
作者:
moonyoulove
时间:
2020-7-25 18:15
那你可以先到菜單的場景,然後激活選人的視窗
作者:
yahzj
时间:
2020-10-29 15:24
在打开对应的界面前,先对人物状态窗口进行选择
Scene_Menu._statusWindow.select($gameActors.actor(1).index());
这里是选取了1号人物,index()是获得在队伍中的位置
楼主试下这个可行不
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X5.0