- Joined
- Jun 7, 2014
- Messages
- 158
- Reaction score
- 90
- First Language
- Fake English
- Primarily Uses
- RMMV
I'm making a battle system for my friend that involves mixing items to create skills. In the menu there's an option that lets players experiment with mixing things and a help window at the bottom displays the description of the resulting skill. NOW I'd like it to display the skill's icon as well but when I make the set text like this
The icon will come up as "undefined" instead. if the same input is repeated it will display the icon on top of the "undefined" text, how do I go about making this help window show an Icon and then the text?
Code:
Window_SpliceResult.prototype.setItem = function(item) {
this.setText(item ? this.drawIcon(item.iconIndex, 0, 0) + " " + item.description : '');
};
The icon will come up as "undefined" instead. if the same input is repeated it will display the icon on top of the "undefined" text, how do I go about making this help window show an Icon and then the text?