Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:43 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.