| 赞 | 164 |
| VIP | 0 |
| 好人卡 | 0 |
| 积分 | 291 |
| 经验 | 0 |
| 最后登录 | 2026-6-7 |
| 在线时间 | 5659 小时 |
Lv5.捕梦者
- 梦石
- 0
- 星屑
- 29141
- 在线时间
- 5659 小时
- 注册时间
- 2016-3-8
- 帖子
- 1723
|
本帖最后由 alexncf125 于 2023-2-1 01:05 编辑
y轴没变化的原因:
Scene_Item.prototype.createCategoryWindow = function() {
this._categoryWindow = new Window_ItemCategory();
this._categoryWindow.setHelpWindow(this._helpWindow);
this._categoryWindow.y = this._helpWindow.height;
this._categoryWindow.setHandler('ok', this.onCategoryOk.bind(this));
this._categoryWindow.setHandler('cancel', this.popScene.bind(this));
this.addWindow(this._categoryWindow);
};
窗口宽度在下一段
Window_ItemCategory.prototype.windowWidth = function() {
return Graphics.boxWidth;
};
窗口高度在父类
Window_HorzCommand.prototype.numVisibleRows = function() {
return 1;
};
再父类
Window_Command.prototype.windowHeight = function() {
return this.fittingHeight(this.numVisibleRows());
}; |
|