MZ Moving Item Categories and Items List

Currently in process of decorating the main menu UI, and I need help with moving around categories and item list, since they're misplaced. If anyone has ideas or knowledge how to do that, it would be nice to know.
1771190076060.png
So if I understand correctly you're just showing that stuff on some background image without window borders? Then you can just move the category and item list window rectangles lower, I think. So change the coordinates to what you want with plugins:

Scene_Item.prototype.itemWindowRect = function() {
const wx = 0;
const wy = this._categoryWindow.y + this._categoryWindow.height;
const ww = Graphics.boxWidth;
const wh = this.mainAreaBottom() - wy;
return new Rectangle(wx, wy, ww, wh);
};

Scene_Item.prototype.categoryWindowRect = function() {
const wx = 0;
const wy = this.mainAreaTop();
const ww = Graphics.boxWidth;
const wh = this.calcWindowHeight(1, true);
return new Rectangle(wx, wy, ww, wh);
};
So if I understand correctly you're just showing that stuff on some background image without window borders? Then you can just move the category and item list window rectangles lower, I think. So change the coordinates to what you want with plugins:

Scene_Item.prototype.itemWindowRect = function() {
const wx = 0;
const wy = this._categoryWindow.y + this._categoryWindow.height;
const ww = Graphics.boxWidth;
const wh = this.mainAreaBottom() - wy;
return new Rectangle(wx, wy, ww, wh);
};

Scene_Item.prototype.categoryWindowRect = function() {
const wx = 0;
const wy = this.mainAreaTop();
const ww = Graphics.boxWidth;
const wh = this.calcWindowHeight(1, true);
return new Rectangle(wx, wy, ww, wh);
};
While it can change the position of the elements, I'd also need to change the highlight box that appears when you select them, and also somehow space categories more. I guess the game refers fo if as 'spacing', but I'm not sure how to setup the change to that. I also not at home at the moment, so I can't test it immediately.
But if you move the windows, that moves where the item/cursor rectangle is drawn? And if you make the category window rectangle wider in that above method, it spaces them more.
But if you move the windows, that moves where the item/cursor rectangle is drawn? And if you make the category window rectangle wider in that above method, it spaces them more.
Wait, you're right. I guess I was kinda stupid and tried to move the text itself. Moving windows and changing width should work better. I'll let you know.
But if you move the windows, that moves where the item/cursor rectangle is drawn? And if you make the category window rectangle wider in that above method, it spaces them more.
Good news, both are working, so thanks for that. Bad news, is that changing the width of category window only affects how wide each window is. You can't change the spacing like that, it stays consistently small, so something else must be responsive for that.

Original thread: https://forums.rpgmakerweb.com/threads/moving-item-categories-and-items-list.182471/