Item/Skill menu spacing

Hi all, let's hope this topic doesn't go unresolved...

Adjusting the game's resolution and playing with menu sizes in the default 'rpg_windows' plugin (I backed up the default.) With the game's new widescreen resolution, menu items like items and skills are stretched too wide for my taste. I tweaked with the script and changed a line in the Window_ItemList section to:

Code:
Window_ItemList.prototype.spacing = function() {
    return 192;
};

The original number was 48. This shortened the width closer together, which is what I wanted (note the blue lines):

Spoiler: Screenshot
example.png

I'm hoping there is a way to close the gap (red line) somewhere in the same code. Whether it's changing a value or adding a new line, would someone please tell me what to do? I essentially just want both columns to be closer to the center without gripping the edges of the screen. Any help is appreciated.
You seemed to have increased spacing between the items instead of reducing the width of the items. Unfortunately, item width is automatically calculated based on window width (see Window_Selectable.prototype.itemWidth), so you'll have to implement some custom logic to left-align your items. Perhaps returning a constant will work. (If you're overriding, override the function in Window_ItemList instead of Window_Selectable.)

If you want to center things, increase the padding. (See Window_Base.prototype.updatePadding)
You seemed to have increased spacing between the items instead of reducing the width of the items. Unfortunately, item width is automatically calculated based on window width (see Window_Selectable.prototype.itemWidth), so you'll have to implement some custom logic to left-align your items. Perhaps returning a constant will work. (If you're overriding, override the function in Window_ItemList instead of Window_Selectable.)

If you want to center things, increase the padding. (See Window_Base.prototype.updatePadding)

@cyanic Thank you for your input! I should begin by saying I have little knowledge of Java. I located Window_Selectable.prototype.itemWidth and tampered a little with it. It seems to be more of a base function that applies to ALL menu windows, including actors on the main menu screen. This is not what I want. I just want the Item and Skill menus to have this padding specifically in their Item List and Skill List windows.

The only Window_Base.prototype.updatePadding was also near the top of the script, so I'm assuming that would apply to every window as well. Would you please share with me how to add this sort of padding/spacing/centering to just the Item/Skill lists? Where and what would I add to override?
Copy and paste the function definition, change the target class (you want Window_ItemList), and it should override behavior for just this class. You should put your modifications in a new plugin .js and not directly overwriting the engine scripts.
@cyanic That seemed to sort of work. I took your advice and made my own .js file in lieu of altering the main scripts. I made this code:

Code:
Window_ItemList.prototype.updatePadding = function() { 
this.padding = this.padding + 32;
};

This worked in bringing the columns closer together, but it also padded the top and bottom, which I do not want. Now the item list is drawn close inside the entire middle:

example2.png


I still want the "top and bottom" rows drawn as though there was no padding. I just wanted the columns to come closer together. Is there a way to pad only the width and not the height?
What if you set this.padding to a constant instead of adding to it?
@cyanic By, constant, do you mean just a static value? I made it a constant 32, and the problem is still there. It doesn't matter what the padding value is, and a constant is beside the point. I don't think padding is the answer, unless there is a way to "pad" the left/right edges (width) and leave the top/bottom edges alone (height.) Can this be done?
How about this?

Code:
//=============================================================================
// cy_ItemListPadder.js
//=============================================================================

/*:
 *
 * @plugindesc Adds horizontal padding to item list
 * @author cyanic
 *
 * @param extraHPadding
 * @text Extra Horizontal Padding
 * @desc How many pixels to pad on the left and right side of the list
 * @type number
 * @min 0
 * @default 32
 *
 */

var Imported = Imported || {};

(function() {

var pluginName = "cy_ItemListPadder";

Imported[pluginName] = 1;

// Load parameters
var sysParams = PluginManager.parameters(pluginName);

var extraHPadding = Number(sysParams["extraHPadding"]) || 32;

Window_ItemList.prototype.itemWidth = function() {
    return Math.floor((this.width - (this.padding + extraHPadding) * 2 +
                        this.spacing()) / this.maxCols() - this.spacing());
};

Window_ItemList.prototype.itemRect = function(index) {
    var rect = Window_Selectable.prototype.itemRect.apply(this, arguments);
    rect.x += extraHPadding;
    return rect;
}

})();
@cyanic Yes! Thank you! I apologize for my ignorance. I'm still learning the basics of java. I'll be sure to credit you for your help.

Original thread: https://forums.rpgmakerweb.com/threads/item-skill-menu-spacing.87637/