Heres what the .zip folder has.
Client.cs
Description.txt
Testgui.gui
And the things inside them
Client.cs:
exec("./Testgui.gui");
moveMap.bind(keyboard, "\", pushTestgui);
function testcommand()
{
MessageBoxOK("Thanks!","You have just pressed a button on a test GUI!");
}
Description.txt:
Name: TestGui
Author: K3k0m@n
K3's first Gui!
Testgui.gui:
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 2";
visible = "1";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "151 43";
extent = "352 340";
minExtent = "8 2";
visible = "1";
command = "canvas.popdialog(TestGui);";
accelerator = "escape";
text = "TestGui";
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 = "top";
position = "82 172";
extent = "166 48";
minExtent = "8 2";
visible = "1";
command = "Testcommand();";
text = "Hai";
groupNum = "-1";
buttonType = "PushButton";
bitmap = "base/client/ui/button1";
lockAspectRatio = "0";
alignLeft = "0";
overflowImage = "0";
mKeepCached = "0";
mColor = "0 230 190 255";
};
};
};
//--- OBJECT WRITE END ---
function pushtestgui(%Gui)
{
%Gui - canvas.pushdialog(TestGui);
}
Thats what i got, any problems?