MV .
JS Plugin RequestsI believe that is a space for drawing the icon for the item/weapon/armor? (if I am understanding what you are describing)
If you do not want that, then you need to remove the "drawIcon" line from the base code... BUT be warned: this will remove icons from ALLLLLLLL items/skills/weapons/armors in all menus and shops.
Another option would to be write an alias for this section and call it in the scenes where you don't want that icon at (equip, status, wherever) so that normal items or whatnot can still use the icons if you want.
If you aren't using icons for any of those items the above method will work fine, but if you are using icons for stuff and don't want them all removed then you need to alias and call the replacement code where needed.
If you do not want that, then you need to remove the "drawIcon" line from the base code... BUT be warned: this will remove icons from ALLLLLLLL items/skills/weapons/armors in all menus and shops.
Code:
Window_Base.prototype.drawItemName = function(item, x, y, width) {
if (item) {
const iconY = y + this.lineHeight() / 2; // Edit: Removed Icon size ref
//const textMargin = ImageManager.iconWidth + 4; // Edit: Removed
const itemWidth = Math.max(0, width); // Edit: Removed Icon size ref
this.resetTextColor();
//this.drawIcon(item.iconIndex, x, iconY); // Edit: Removed
this.drawText(item.name, x, y, itemWidth); // Edit: Remove Icon +x spacing
}
};
Another option would to be write an alias for this section and call it in the scenes where you don't want that icon at (equip, status, wherever) so that normal items or whatnot can still use the icons if you want.
If you aren't using icons for any of those items the above method will work fine, but if you are using icons for stuff and don't want them all removed then you need to alias and call the replacement code where needed.
The spacing/layout is defined in the core scripts, e.g.
I.e.
JavaScript:
Window_EquipStatus.prototype.drawItem = function(x, y, paramId) {
this.drawParamName(x + this.textPadding(), y, paramId);
if (this._actor) {
this.drawCurrentParam(x + 140, y, paramId);
}
this.drawRightArrow(x + 188, y);
if (this._tempActor) {
this.drawNewParam(x + 222, y, paramId);
}
};
- Draw the parameter name at (
x + padding,y) - Draw the current parameter value at (
x + 140,y) - If comparing, draw the new parameter value at (
x + 222,y)
I've moved this to JS Plugin Requests for now.
Great! Some thoughts:
Also, please try to avoid double-posting. Here's the standard message (you're not in trouble):
- Ahuramazda's suggestion does almost exactly the same as the plugin you're using by waynee95, it just adds a check from MZ to ensure the width isn't negative. (I guess the main reason MZ added that was because of the native screen resolution settings.)
- I don't think HIME's Equip Slots affects layout, so that should be OK.
- The default status menu doesn't actually show equip slot names, only the item names. I'm guessing the ClassicStatusMenus plugin changes that in some way? In that case any adjustments to spacing on the status screen should be done with reference to that plugin. If you want help with that then post a link to that plugin's thread/page~
- I don't think any of the other plugins touch equipment display (status/equip/shop).
JavaScript:
/*:
* @plugindesc Change equip scene "slot (space) item" spacing.
* @help Terms of use: free to use and/or modify for any project.
*/
Window_EquipSlot.prototype.drawItem = function(index) {
if (this._actor) {
var rect = this.itemRectForText(index);
this.changeTextColor(this.systemColor());
this.changePaintOpacity(this.isEnabled(index));
// changed 138 -> 90 in the next two lines:
this.drawText(this.slotName(index), rect.x, rect.y, 90, this.lineHeight());
this.drawItemName(this._actor.equips()[index], rect.x + 90, rect.y);
this.changePaintOpacity(true);
}
};
Also, please try to avoid double-posting. Here's the standard message (you're not in trouble):
@magicbatteryacid, please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.
You can also use the +Quote button to quote multiple people in a single post. 👋
If you try the code I suggested in my previous post and it doesn't work, then a screenshot might help to explain the problem. 👋
Not sure what might be happening with damage numbers, but I'd recommend discussing it on that thread rather than this one. Pretty sure it's OK to bump/necro your own support thread if you discover a problem with the solution.
Oh, I see! That's what I get for not giving my snippets names. Yea, I think that should be OK: it only affects the battle and pause menu, not the status/equip/etc scenes. (I should've known that from the description in the Plugin Manager...sorry, past me.) 😴
Not sure what might be happening with damage numbers, but I'd recommend discussing it on that thread rather than this one. Pretty sure it's OK to bump/necro your own support thread if you discover a problem with the solution.
Ah, the param blocks. You can try adding this (untested):
I've just shifted everything 50 px <-, but you can change the values to whatever works best~
JavaScript:
// Status scene: -50 px spacing in "param (space) value"
Window_Status.prototype.drawParameters = function(x, y) {
var lineHeight = this.lineHeight();
for (var i = 0; i < 6; i++) {
var paramId = i + 2;
var y2 = y + lineHeight * i;
this.changeTextColor(this.systemColor());
this.drawText(TextManager.param(paramId), x, y2, 160);
this.resetTextColor();
// edit: -50 to x position of param value
this.drawText(this._actor.param(paramId), x + 160 - 50, y2, 60, 'right');
}
};
// Equip scene: -50 px spacing in "param (space) value -> new value"
Window_EquipStatus.prototype.drawItem = function(x, y, paramId) {
this.drawParamName(x + this.textPadding(), y, paramId);
if (this._actor) {
this.drawCurrentParam(x + 140 - 50, y, paramId); // edit 1 (value)
}
this.drawRightArrow(x + 188 - 50, y); // edit 2 (arrow)
if (this._tempActor) {
this.drawNewParam(x + 222 - 50, y, paramId); // edit 3 (new value)
}
};
Original thread: https://forums.rpgmakerweb.com/threads/146230/