Hi all!
I'm creating a costume scene that has several windows (title, command, selections and informations).
In the information window I've this function:
And I start by calling it here:
It works without problems but if I try to call it outside from the Scene_Crafting (to update the item description) it says it cannot read "refresh" of undefined.
I'm sure that the window is created, i tried various way to call it but to no vail.
Am I missing something? What's the correct way to call another Windows function?
Thanks!
I'm creating a costume scene that has several windows (title, command, selections and informations).
In the information window I've this function:
JavaScript:
Window_CraftingInformation.prototype.refresh = function() {
};
And I start by calling it here:
JavaScript:
Scene_Crafting.prototype.create = function() {
Scene_MenuBase.prototype.create.call(this);
this.createCraftingTitleWindow();
this.createInformationWindow();
if (mainArrayReader("Mode") === "craftMode3") {
this.createModeSelectionWindow();
currentWindow = "Select";
} else {
if (mainArrayReader("Mode") === "craftMode1") {
this.createCombineColumnAWindow();
this.createCombineColumnBWindow();
currentWindow = "ColA";
} else {
currentWindow = "Formula";
//ToDo Formula
}
};
this._craftingInformationWindow.refresh();
};
It works without problems but if I try to call it outside from the Scene_Crafting (to update the item description) it says it cannot read "refresh" of undefined.
I'm sure that the window is created, i tried various way to call it but to no vail.
Am I missing something? What's the correct way to call another Windows function?
Thanks!