View Single Post
  #1  
Old 02-12-2010, 12:41 AM
Jimbo33 Jimbo33 is offline
****
Jimbo33's Avatar
Join Date: Jan 2008
Location: Canada
Posts: 74
Jimbo33 is on a distinguished road
Send a message via AIM to Jimbo33 Send a message via MSN to Jimbo33
Close GUI on button click?

Hi,
I want my GUI to close when the player presses a button...
Here are the two parts of my GUI Script about the button I want
to close the whole GUI:

HTML Code:
    new GuiButtonCtrl("ClassSelect_Button3") {
      profile = GuiBlueButtonProfile;
      text = "Swordsman";
      width = 80;
      x = 10;
      y = 200;
    }
...

HTML Code:
function ClassSelect_Button3.onAction() {
//Stuff
}

Please help, all I need is the command to close everything and where to put it, thanks
Reply With Quote