I'm creating a window with the following code:
My starting width is 0 and I changed it with 'textWidthEx', the problem is that this way even if the window is the right size the text I draw later is not showing.
What I'm doing wrong?
Code:
var win = new Window_Base(150, 150, 0, 72);
win.width = win.textWidthEx(LDx.variables.souls[0]) + win.standardPadding() * 10;
SceneManager._scene.addChild(win);
win.drawTextEx(String(LDx.variables.souls[0]), 0, 0);
My starting width is 0 and I changed it with 'textWidthEx', the problem is that this way even if the window is the right size the text I draw later is not showing.
What I'm doing wrong?