Hi again guys learning javascript here
Just doing some javascript training and I'm stuck on what I'm doing
basically I just want to call the $gameParty.allItems(); and display in the window in a text form
its name desc. id etc. I tried doing $gameParty.allItems($dataItems.name); but its an error it display
all data from the array but i just want to display the item name only how to do that?
thank you guys for the help
edit: I tried this one too
this.drawItemName(7, 0, 0, 300);
btw here's my code(sorry forgot to include)
Just doing some javascript training and I'm stuck on what I'm doing
basically I just want to call the $gameParty.allItems(); and display in the window in a text form
its name desc. id etc. I tried doing $gameParty.allItems($dataItems.name); but its an error it display
all data from the array but i just want to display the item name only how to do that?
thank you guys for the help
edit: I tried this one too
this.drawItemName(7, 0, 0, 300);
btw here's my code(sorry forgot to include)
JavaScript:
/** /*:
* @target MZ
*
* @author name
* @plugindesc hehhey
*
* @command open
* @text Open Window
*
*/
;
(() => {
PluginManager.registerCommand('customitem', 'open', args => {
SceneManager.push(Scene_CustomItem);
});
class Window_CustomItem extends Window_Base {
constructor(rect) {
super(rect);
}
refresh() {
super.update();
this.contents.clear();
this.make_draw_item();
}
make_draw_item() {
this.drawItemName(7, 0, 0, 300);
}
}
class Scene_CustomItem extends Scene_Base {
constructor() {
super();
this.wci = new Window_CustomItem(new Rectangle(0, 0, 500, 416));
this.addChild(this.wci);
}
refresh() {
this.contents.clear();
}
}
}) ();