Infinite Runner Engine v1.9
Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MoreMountains.MMInterface.MMRadioButton Class Reference

A class to handle radio buttons. To group them, just use the same RadioButtonGroupName string for all radio buttons in the group More...

Inheritance diagram for MoreMountains.MMInterface.MMRadioButton:
MoreMountains.MMInterface.MMSpriteReplace

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...
 

Detailed Description

A class to handle radio buttons. To group them, just use the same RadioButtonGroupName string for all radio buttons in the group

Member Function Documentation

◆ FindAllRadioButtonsFromTheSameGroup()

virtual void MoreMountains.MMInterface.MMRadioButton.FindAllRadioButtonsFromTheSameGroup ( )
protectedvirtual

Finds all radio buttons from the same group.

◆ Initialization()

override void MoreMountains.MMInterface.MMRadioButton.Initialization ( )
protectedvirtual

On Init, we grab all buttons from the group

Reimplemented from MoreMountains.MMInterface.MMSpriteReplace.

◆ SpriteOn()

override void MoreMountains.MMInterface.MMRadioButton.SpriteOn ( )
protectedvirtual

When turning the button on, we turn off all other buttons in the group

Reimplemented from MoreMountains.MMInterface.MMSpriteReplace.

Member Data Documentation

◆ _group

List<MMRadioButton> MoreMountains.MMInterface.MMRadioButton._group
protected

◆ RadioButtonGroupName

string MoreMountains.MMInterface.MMRadioButton.RadioButtonGroupName

The name of the radio button group. Use the same one for each buttons in the group.


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