Infinite Runner Engine v1.9
|
A class to handle radio buttons. To group them, just use the same RadioButtonGroupName string for all radio buttons in the group More...
Public Attributes | |
string | RadioButtonGroupName |
The name of the radio button group. Use the same one for each buttons in the group. More... | |
Public Attributes inherited from MoreMountains.MMInterface.MMSpriteReplace | |
Sprite | OnSprite |
the sprite to use when in the "on" state More... | |
Sprite | OffSprite |
the sprite to use when in the "off" state More... | |
bool | StartsOn = true |
if this is true, the button will start if "on" state More... | |
bool | SwapButton |
bool | SwitchToOffSpriteButton |
bool | SwitchToOnSpriteButton |
Protected Member Functions | |
override void | Initialization () |
On Init, we grab all buttons from the group More... | |
virtual void | FindAllRadioButtonsFromTheSameGroup () |
Finds all radio buttons from the same group. More... | |
override void | SpriteOn () |
When turning the button on, we turn off all other buttons in the group More... | |
Protected Member Functions inherited from MoreMountains.MMInterface.MMSpriteReplace | |
virtual void | Start () |
On Start we initialize our button More... | |
virtual void | SpriteOff () |
sets the image's sprite to off More... | |
Protected Attributes | |
List< MMRadioButton > | _group |
Protected Attributes inherited from MoreMountains.MMInterface.MMSpriteReplace | |
Image | _image |
SpriteRenderer | _spriteRenderer |
MMTouchButton | _mmTouchButton |
Additional Inherited Members | |
Public Member Functions inherited from MoreMountains.MMInterface.MMSpriteReplace | |
virtual void | Swap () |
A public method to change the sprite More... | |
virtual void | SwitchToOffSprite () |
a public method to switch to off sprite directly More... | |
virtual void | SwitchToOnSprite () |
a public method to switch to on sprite directly More... | |
Properties inherited from MoreMountains.MMInterface.MMSpriteReplace | |
bool | CurrentValue [get] |
the current state of the button More... | |
A class to handle radio buttons. To group them, just use the same RadioButtonGroupName string for all radio buttons in the group
|
protectedvirtual |
Finds all radio buttons from the same group.
|
protectedvirtual |
On Init, we grab all buttons from the group
Reimplemented from MoreMountains.MMInterface.MMSpriteReplace.
|
protectedvirtual |
When turning the button on, we turn off all other buttons in the group
Reimplemented from MoreMountains.MMInterface.MMSpriteReplace.
|
protected |
string MoreMountains.MMInterface.MMRadioButton.RadioButtonGroupName |
The name of the radio button group. Use the same one for each buttons in the group.