Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-19-2006, 04:27 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
GuiRadioCtrl

I'm not sure if there is a tread (if there is one could you please point me in the direction) for this or not and I cant find it on the wiki. What function or commands do I use so when a person clicks 3 seperate RadioCtrl buttons (in the same gui) it triggers some cammands
__________________
Deep into the Darkness peering...
Reply With Quote
  #2  
Old 07-19-2006, 05:11 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Are the radio controls linked, as in, you can only click one of the three?

There is a property, 'groupnum', that you set inside the GuiRadioCtrl. Every radio button with the same groupnum will act together. You can use a catchEvent() function to detect when the player presses these.

catchEvent(object, oldfunction, newfunction);

ex
catchEvent(TGConsole_VariableRadio, "onAction", "TGConsoleVariableAction");
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #3  
Old 07-19-2006, 06:04 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
[QUOTE=ForgottenLegacy]Are the radio controls linked, as in, you can only click one of the three?QUOTE]
no there not butt I found a way Thanks anyway ^_^
__________________
Deep into the Darkness peering...
Reply With Quote
  #4  
Old 07-19-2006, 07:41 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
O_o What?
In a GuiRadioCtrl, only one button in each group can be selected. If you select another button in the same group, the one that was previously selected is unselected.
Reply With Quote
  #5  
Old 07-19-2006, 11:07 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
The buttons arnt in the same group i have them seperated by the Scroll control
__________________
Deep into the Darkness peering...
Reply With Quote
Reply


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 08:37 AM.


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