I made a Window for a Scene I created, with an update function like this:
Everything works just fine, Hello World displays at the top of my window. Now I've put another update function, but for my Scene:
The problem is that the update function from the QuestDetailWindow is not being called anymore, so the message Hello World is not being displayed. Is this a common behavior? Can't I have a Scene AND it's Windows updating at the same time?
My workaround for this: calling the update function for the Window inside the Scene update function.
JavaScript:
QuestDetailWindow.prototype.update = function () {
Window_Base.prototype.update.call(this);
this.drawAllItems();
}
QuestDetailWindow.prototype.drawAllItems = function () {
this.drawText('Hello world', 0, 0);
}
Everything works just fine, Hello World displays at the top of my window. Now I've put another update function, but for my Scene:
JavaScript:
QuestScene.prototype.update = function () {
if (Input.isTriggered('cancel')) {
SceneManager.pop();
}
}
The problem is that the update function from the QuestDetailWindow is not being called anymore, so the message Hello World is not being displayed. Is this a common behavior? Can't I have a Scene AND it's Windows updating at the same time?
My workaround for this: calling the update function for the Window inside the Scene update function.