I wanted to make a GUI for my server, so now I made a test GUI. (I kind of followed
jes' tutorial)
And now it pops up an error when I execute it and it pulls the GUI up on the whole screen when I open it. I did follow the whole tutorial.
The error that shows in the console when I execute it:
Error: cannot change namespace parent linkage for Testgui from GuiControl to GuiWindowCtrl.*EDIT: And it also makes new testGUI's in the GUI Editor when I go through the GUINAME - NUMBER list.
//--- OBJECT WRITE BEGIN ---
new GuiControl(Testgui) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 2";
enabled = "1";
visible = "1";
clipToParent = "1";
new GuiWindowCtrl(Testgui) {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "138 139";
extent = "257 200";
minExtent = "8 2";
enabled = "1";
visible = "1";
clipToParent = "1";
command = "canvas.popDialog(TestGUI);";
accelerator = "escape";
text = "Test";
maxLength = "255";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "1";
canMaximize = "1";
minSize = "50 50";
closeCommand = "canvas.popDialog(TestGUI);";
new GuiBitmapButtonCtrl() {
profile = "BlockButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "52 112";
extent = "140 30";
minExtent = "8 2";
enabled = "1";
visible = "1";
clipToParent = "1";
command = "TestGUIButtonPush()";
text = "Button";
groupNum = "-1";
buttonType = "PushButton";
bitmap = "base/client/ui/button2";
lockAspectRatio = "0";
alignLeft = "0";
alignTop = "0";
overflowImage = "0";
mKeepCached = "0";
mColor = "255 255 255 255";
};
};
};
//--- OBJECT WRITE END ---
function Open_TestGUI(%toggle)
{
if(%toggle)
{
if(TestGui.isAwake())
{
canvas.popDialog(TestGui);
}
else
{
canvas.pushDialog(TestGui);
}
}
}