MZ RPGMZ Window Base

Hi guys. I'm new in RPG maker programming and I'm trying to create a name box.

Game_Message.prototype.add = function(text) {
this._texts.push(text);
SceneManager._scene._messageWindow.width = 800
SceneManager._scene._messageWindow.position.x = 240
console.log(SceneManager._scene._messageWindow)
// Create new Window
var rect = new Rectangle(10, 20, 180, 40)
var myWindow = new Window_Base(rect);
myWindow.position = {x: 250, y: 395}

SceneManager._scene.addChild(myWindow);
};

01.png


But I'm having some problems:
  • First - I can't close the name box when the text box closed. (I'm trying myWindow.close() but the name box close immediately )
  • Second - I can't set text in the name box.

I'm sorry if there are any grammatical errors (I'm still learning English).
Thanks in advance!
If you're using RPG Maker MZ, which the title implies, you might want to use the box indicated by the arrow for the name box.
1598067594907.png

Unfortunately, this means your coding has gone to waste. Hope this helps!
😳 I have not seen that. At least I learned a few things.
Thanks, guy!
I recommend trying to pursue your solution to the end to really cement what you've learned 😀 but yeah the namebox is super cool! looking forward to seeing ppl use it as a notetag box hahaha
Hum, you're right. I'll keep trying.

Original thread: https://forums.rpgmakerweb.com/threads/rpgmz-window-base.125684/