Hi everyone!
I am using the default item UI and would like to figure out how to remove the grayed out/slightly transparent look for items that aren't usable (ideally, back to 255, or maybe even 230 or something - but not as low as it is now).
I went into rpg_windows and found on line 243:
Then on line 251:
I could change the "160" in the first code to something, but I do like having unusable skills being translucent. I just want the items in the item scene to appear normal so it isn't a wash of gray.
I'd also like a separate js plugin to pop in instead of editing rpg_windows directly.
Now I'm not sure which code effects the actual item window. I saw what might have been relevant lines on 1407 and 1984, but I'm not entirely certain.
1407:
1984:
Anyone think they can help out? 🙂
Thanks!
I am using the default item UI and would like to figure out how to remove the grayed out/slightly transparent look for items that aren't usable (ideally, back to 255, or maybe even 230 or something - but not as low as it is now).
I went into rpg_windows and found on line 243:
Code:
Window_Base.prototype.translucentOpacity = function() {
return 160;
};
Then on line 251:
Code:
Window_Base.prototype.changePaintOpacity = function(enabled) {
this.contents.paintOpacity = enabled ? 255 : this.translucentOpacity();
};
I could change the "160" in the first code to something, but I do like having unusable skills being translucent. I just want the items in the item scene to appear normal so it isn't a wash of gray.
I'd also like a separate js plugin to pop in instead of editing rpg_windows directly.
Now I'm not sure which code effects the actual item window. I saw what might have been relevant lines on 1407 and 1984, but I'm not entirely certain.
1407:
Code:
Window_Command.prototype.drawItem = function(index) {
var rect = this.itemRectForText(index);
var align = this.itemTextAlign();
this.resetTextColor();
this.changePaintOpacity(this.isCommandEnabled(index));
this.drawText(this.commandName(index), rect.x, rect.y, rect.width, align);
};
1984:
Code:
Window_ItemList.prototype.drawItem = function(index) {
var item = this._data[index];
if (item) {
var numberWidth = this.numberWidth();
var rect = this.itemRect(index);
rect.width -= this.textPadding();
this.changePaintOpacity(this.isEnabled(item));
this.drawItemName(item, rect.x, rect.y, rect.width - numberWidth);
this.drawItemNumber(item, rect.x, rect.y, rect.width);
this.changePaintOpacity(1);
}
};
Anyone think they can help out? 🙂
Thanks!