I've played around with this quite a bit, even looking at YEP X Item Discard script, which centers the text/commands as well as sizes the window according to the length of the text (which would vary depending on the name length of the item being discarded, which is something else I'm interested in too).
I'm no programmer, so I tend to fumble my way around things, learnings bits here and there.
I've tried this snippet from the YEP X Item Discard plugin:
and just renamed Window_ItemDiscardConfirm to Window_ItemActionCommand but yields no results.
Does anyone have any idea why? I searched "center" in the Item Discard script to see if it's defined anywhere else but nope, so I don't know why it doesn't work in the Item Core script.
I'm at a bit of a loss! Any help would be great. Thanks!
I'm no programmer, so I tend to fumble my way around things, learnings bits here and there.
I've tried this snippet from the YEP X Item Discard plugin:
Code:
Window_ItemDiscardConfirm.prototype.itemTextAlign = function() {
return 'center';
};
Does anyone have any idea why? I searched "center" in the Item Discard script to see if it's defined anywhere else but nope, so I don't know why it doesn't work in the Item Core script.
I'm at a bit of a loss! Any help would be great. Thanks!