How do I?
Whi won't it with this code?
And, how does it work?
[so far I get the gui up and I can click the button, but it does nothing when I do]
Code for GUIZ.cs :
exec("./Join.gui");
moveMap.bind(keyboard, "m", pushtestgui);
function testcommand()
{
MessageBoxOK("Thanks!","You have just pressed a button on a test GUI!");
}
Code for Join.gui :
//--- OBJECT WRITE BEGIN ---
new GuiControl(Joincit) {
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 = "112 184";
extent = "96 98";
minExtent = "8 2";
visible = "1";
maxLength = "255";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "1";
canMaximize = "1";
minSize = "50 50";
new GuiBitmapButtonCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "17 46";
extent = "60 28";
minExtent = "8 2";
visible = "1";
text = " Join us!";
groupNum = "-1";
buttonType = "PushButton";
bitmap = "base/client/ui/button1";
lockAspectRatio = "0";
alignLeft = "0";
overflowImage = "0";
mKeepCached = "0";
mColor = "255 255 255 255";
};
};
};
//--- OBJECT WRITE END ---
function pushtestgui(%Gui)
{
%Gui = canvas.pushDialog(Joincit);
}