Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
KSP.UI.RadioButtonGroup Class Reference

A class which encapsulates all that is required to track and manage radio buttons as a group. More...

Public Member Functions

 RadioButtonGroup (int id)
 

Static Public Member Functions

static RadioButtonGroup GetGroup (int id)
 Returns a reference to the radio button group specified by "id". More...
 
static IRadioButton GetSelected (GameObject go)
 Returns a reference to the selected radio button for the specified group. More...
 
static IRadioButton GetSelected (int id)
 Returns a reference to the selected radio button for the specified group. More...
 

Public Attributes

List< IRadioButtonbuttons = new List<IRadioButton>()
 
int groupID
 

Detailed Description

A class which encapsulates all that is required to track and manage radio buttons as a group.

Constructor & Destructor Documentation

KSP.UI.RadioButtonGroup.RadioButtonGroup ( int  id)
inline

Member Function Documentation

static RadioButtonGroup KSP.UI.RadioButtonGroup.GetGroup ( int  id)
inlinestatic

Returns a reference to the radio button group specified by "id".

Parameters
idThe ID of the group (either an arbitrary integer ID, or the hashcode of a radio button's parent transform, depending on the settings).
Returns
Returns a reference to the group with the specified ID.
static IRadioButton KSP.UI.RadioButtonGroup.GetSelected ( GameObject  go)
inlinestatic

Returns a reference to the selected radio button for the specified group.

Parameters
idThe parent GameObject of the radio buttons.
Returns
A reference to the currently selected (true) radio button. Null if none is set to true.
static IRadioButton KSP.UI.RadioButtonGroup.GetSelected ( int  id)
inlinestatic

Returns a reference to the selected radio button for the specified group.

Parameters
idThe ID of the group (either an arbitrary integer ID, or the hashcode of a radio button's parent transform, depending on the settings).
Returns
A reference to the currently selected (true) radio button. Null if none is set to true.

Member Data Documentation

List<IRadioButton> KSP.UI.RadioButtonGroup.buttons = new List<IRadioButton>()
int KSP.UI.RadioButtonGroup.groupID

The documentation for this class was generated from the following file: