MZ RMMZ starting point for plugin making

Hello guys, i'm new on the forum and recently i got RMMZ because i see some potential in it's game making capacities. Anyway i'm a 23yo guy and i'm a fullstack developer and i know very well about js. I know that the engine use pixi.js as core and that's okay... What i want to know is if there is some sort of RMMZ documentation for the plugin makers.

In my case i'm trying to write my own plugin that make appear on screen a little window (in future it may be custom, but for now I want it to appear)


This is my actual code:

(() => { const pluginName = "dia"; PluginManager.registerCommand(pluginName, "test", test) })(); function test(){ var window = new Window(100, 20, 100, 20); //window.drawText("Hello World", 100, 20, 100, 10, "left"); //window.drawIcon(iconindex, {x: xpos, y: ypos}); this.addChild(window); }


That's what i wrote so far... I need some kind of documentation: now if I try this i get error (because the engine doesn't recognize this.addChild as a function)


Any suggestion or tutorials about how RMMZ core workd? I tried somenthing that I found about MV but seems not working on MZ, Thanks in advice and sorry for my bad english

Original thread: https://forums.rpgmakerweb.com/threads/rmmz-starting-point-for-plugin-making.143844/