Not sure if I worded that right, but I'm finessing the look of the item use/discard window of YEP_ItemCore/YEP_X_ItemDiscard. I'm needing to adjust the y position of the icon in the 'use' command line. I've been able to split up command into variables and then add them together, but that's about it! I've tried defining y as I've seen in other code bits, such as
Help is appreciated! Thanks!
y = this.lineHeight(); and then write icon.y = y - 2; but that's not functioning since I'm likely missing logic/for real don't know how, haha.
Code:
Window_ItemActionCommand.prototype.addUseCommand = function() {
var enabled = this.isEnabled(this._item);
//var fmt = Yanfly.Param.ItemUseCmd;
var use = 'Use' + '';
var icon = '\\i['+ this._item.iconIndex + ']';
var name = this._item.name;
var text = use + icon + name;
if (this._item.textColor !== undefined) {
text += '\\c['+ this._item.textColor + ']';
}
//text = fmt.format(text);
this.addCommand(text, 'use', enabled);
};
Help is appreciated! Thanks!