Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   GuiRadioCtrl (https://forums.graalonline.com/forums/showthread.php?t=67440)

Angel_Light 07-19-2006 04:27 AM

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 x_x

ForgottenLegacy 07-19-2006 05:11 AM

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");

Angel_Light 07-19-2006 06:04 AM

[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 ^_^

Yen 07-19-2006 07:41 PM

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.

Angel_Light 07-19-2006 11:07 PM

The buttons arnt in the same group i have them seperated by the Scroll control


All times are GMT +2. The time now is 12:07 AM.

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