本帖最后由 流浪杰哥 于 2022-7-10 11:32 编辑
可以试试行不行
(function () { var _Scene_Skill_create = Scene_Skill.prototype.create; Scene_Skill.prototype.create = function() { _Scene_Skill_create.call(this); this._skillTypeWindow.deactivate(); this._statusWindow.width += this._skillTypeWindow.width; this._statusWindow.x -= this._skillTypeWindow.width; this._itemWindow.setHandler('pagedown', this.nextActor.bind(this)); this._itemWindow.setHandler('pageup', this.previousActor.bind(this)); this._itemWindow.activate(); this._itemWindow.select(0); }; var _Scene_Skill_onItemCancel = Scene_Skill.prototype.onItemCancel; Scene_Skill.prototype.onItemCancel = function() { _Scene_Skill_onItemCancel.call(this); this.popScene(); }; var _Scene_Skill_onActorChange = Scene_Skill.prototype.onActorChange; Scene_Skill.prototype.onActorChange = function() { _Scene_Skill_onActorChange.call(this); this._skillTypeWindow.deactivate(); this._itemWindow.activate(); }; })()
(function () {
var _Scene_Skill_create = Scene_Skill.prototype.create;
Scene_Skill.prototype.create = function() {
_Scene_Skill_create.call(this);
this._skillTypeWindow.deactivate();
this._statusWindow.width += this._skillTypeWindow.width;
this._statusWindow.x -= this._skillTypeWindow.width;
this._itemWindow.setHandler('pagedown', this.nextActor.bind(this));
this._itemWindow.setHandler('pageup', this.previousActor.bind(this));
this._itemWindow.activate();
this._itemWindow.select(0);
};
var _Scene_Skill_onItemCancel = Scene_Skill.prototype.onItemCancel;
Scene_Skill.prototype.onItemCancel = function() {
_Scene_Skill_onItemCancel.call(this);
this.popScene();
};
var _Scene_Skill_onActorChange = Scene_Skill.prototype.onActorChange;
Scene_Skill.prototype.onActorChange = function() {
_Scene_Skill_onActorChange.call(this);
this._skillTypeWindow.deactivate();
this._itemWindow.activate();
};
})()
|