Feel  3.16
The best way to improve your game's feel and make it extra juicy
MoreMountains.Tools.MMDebugMenuRadioButton 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.Tools.MMDebugMenuRadioButton:
MoreMountains.Tools.MMDebugMenuSpriteReplace

Public Member Functions

override void Initialization ()
 On Init, we grab all buttons from the group More...
 
- Public Member Functions inherited from MoreMountains.Tools.MMDebugMenuSpriteReplace
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...
 

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

Protected Member Functions

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.Tools.MMDebugMenuSpriteReplace
virtual void Awake ()
 On Start we initialize our button More...
 
virtual void SpriteOff ()
 sets the image's sprite to off More...
 

Protected Attributes

List< MMDebugMenuRadioButton_group
 
- Protected Attributes inherited from MoreMountains.Tools.MMDebugMenuSpriteReplace
Image _image
 
MMTouchButton _mmTouchButton
 

Additional Inherited Members

- Properties inherited from MoreMountains.Tools.MMDebugMenuSpriteReplace
virtual 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.Tools.MMDebugMenuRadioButton.FindAllRadioButtonsFromTheSameGroup ( )
protectedvirtual

Finds all radio buttons from the same group.

◆ Initialization()

override void MoreMountains.Tools.MMDebugMenuRadioButton.Initialization ( )
virtual

On Init, we grab all buttons from the group

Reimplemented from MoreMountains.Tools.MMDebugMenuSpriteReplace.

◆ SpriteOn()

override void MoreMountains.Tools.MMDebugMenuRadioButton.SpriteOn ( )
protectedvirtual

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

Reimplemented from MoreMountains.Tools.MMDebugMenuSpriteReplace.

Member Data Documentation

◆ _group

List<MMDebugMenuRadioButton> MoreMountains.Tools.MMDebugMenuRadioButton._group
protected

◆ RadioButtonGroupName

string MoreMountains.Tools.MMDebugMenuRadioButton.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: