| 
 
| 赞 | 160 |  
| VIP | 0 |  
| 好人卡 | 0 |  
| 积分 | 273 |  
| 经验 | 0 |  
| 最后登录 | 2025-10-31 |  
| 在线时间 | 5455 小时 |  
 Lv5.捕梦者 
	梦石0 星屑27250 在线时间5455 小时注册时间2016-3-8帖子1684 | 
| 本帖最后由 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());
 };
 | 
 |