Quote:
Originally Posted by Kirko
Only took a year.
PHP Code:
function showCrap() {
new GuiWindowCtrl("MyWindow") {
useownprofile = true;
style = $pref::video::defaultguistyle;
isExternal = true;
showOnTaskBar = true;
text = "My Window";
}
// Had to change in other function, didn't work in this one
stuff();
}
function stuff() {
temp.ctrl = MyWindow.externalwindow; // basically just change this
ctrl.width = 300;
ctrl.height = 200;
ctrl.x = (ctrl.screenWidth - ctrl.width) / 2;
ctrl.y = (ctrl.screenHeight - ctrl.height) / 2;
}
|
Thank you for this. It solves a problem I was attempting to solve years ago as I was unaware you could modify the .externalwindow object (official documentation states that it is read-only, I guess that doesn't necessarily mean its properties are read-only).
That said it is working fine for me within the original function that is creating the external GUI...