Thread: GuiRadioCtrl
View Single Post
  #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