Conversation
|
PLEASEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE |
|
say wallahi bro say wallahi 🥹🥹🥹🥹🥹 |
|
i dont know about this personally but if you guys want this then ill look more into it |
please raltyro i need this.. my codename is kinda windowless.. |
|
I hope it's going to be worth it. |
|
I do think it's lacking features cuz I want to be able to implement states into sub-windows at least That's basically all this pr needs and then it can be merged |
It will 100% be worth it because now people won't need to compile cne just to make a new window, at least in this pr more modpacks will be made Also a good start to maybe introducing features like this into the powers of scripting |
This PR implements Windows that scripts can initialize and modify without having the user killing themself
You call the
new ScriptedWindowto initialize a new sub-window, and you can pass inWindowAttributesas a 2nd parameter.You are required to path to a valid Script as the 1st parameter before the window can exist.
The Script's parent is the
Windowitself, so note that callingwindow.close();closes the MAIN WINDOW, callclose();/this.close();Note that
gameis aSpritetype and you should add to that instead ofstage.addChild, since it's a seperate window, you are basically talking to OpenFL directly, so your working withBitmap/BitmapDataandSpriteall from OpenFL.