A class to add to an image to have it act like a button with a different sprite for on and off states
More...
Inherits MonoBehaviour.
Inherited by MoreMountains.Tools.MMDebugMenuRadioButton.
A class to add to an image to have it act like a button with a different sprite for on and off states
◆ Awake()
virtual void MoreMountains.Tools.MMDebugMenuSpriteReplace.Awake |
( |
| ) |
|
|
protectedvirtual |
On Start we initialize our button
◆ Initialization()
virtual void MoreMountains.Tools.MMDebugMenuSpriteReplace.Initialization |
( |
| ) |
|
|
virtual |
◆ SpriteOff()
virtual void MoreMountains.Tools.MMDebugMenuSpriteReplace.SpriteOff |
( |
| ) |
|
|
protectedvirtual |
sets the image's sprite to off
◆ SpriteOn()
virtual void MoreMountains.Tools.MMDebugMenuSpriteReplace.SpriteOn |
( |
| ) |
|
|
protectedvirtual |
◆ Swap()
virtual void MoreMountains.Tools.MMDebugMenuSpriteReplace.Swap |
( |
| ) |
|
|
virtual |
A public method to change the sprite
◆ SwitchToOffSprite()
virtual void MoreMountains.Tools.MMDebugMenuSpriteReplace.SwitchToOffSprite |
( |
| ) |
|
|
virtual |
a public method to switch to off sprite directly
◆ SwitchToOnSprite()
virtual void MoreMountains.Tools.MMDebugMenuSpriteReplace.SwitchToOnSprite |
( |
| ) |
|
|
virtual |
a public method to switch to on sprite directly
◆ _image
Image MoreMountains.Tools.MMDebugMenuSpriteReplace._image |
|
protected |
◆ _mmTouchButton
MMTouchButton MoreMountains.Tools.MMDebugMenuSpriteReplace._mmTouchButton |
|
protected |
◆ OffSprite
Sprite MoreMountains.Tools.MMDebugMenuSpriteReplace.OffSprite |
the sprite to use when in the "off" state
◆ OnSprite
Sprite MoreMountains.Tools.MMDebugMenuSpriteReplace.OnSprite |
the sprite to use when in the "on" state
◆ StartsOn
bool MoreMountains.Tools.MMDebugMenuSpriteReplace.StartsOn = true |
if this is true, the button will start if "on" state
◆ CurrentValue
virtual bool MoreMountains.Tools.MMDebugMenuSpriteReplace.CurrentValue |
|
get |
the current state of the button
The documentation for this class was generated from the following file: