Antura  1.1.0
Antura.AnturaSpace.UI.AnturaSpaceSwatchButton Class Reference

Button used to select a color for an item in the Antura Space scene. More...

Inheritance diagram for Antura.AnturaSpace.UI.AnturaSpaceSwatchButton:

Public Member Functions

override void Lock (bool _doLock)
void SetAsNew (bool _isNew)
void SetColors (Color _color0, Color _color1)
- Public Member Functions inherited from Antura.UI.UIButton
virtual void Toggle (bool _activate, bool _animateClick=false)
void ChangeDefaultColors (Color _defaultColor, Color? _toggleOffColor=null)
void Pulse ()
 Pulsing stops automatically when the button is toggled or clicked (via AnimateClick) More...
void StopPulsing ()
void AnimateClick (bool _force=false)
void PlayClickFx ()

Public Attributes

GameObject IcoLock
GameObject IcoNew
Image [] ColorImgs
RewardColorItem Data
- Public Attributes inherited from Antura.UI.UIButton
Color BtToggleOffColor = Color.white
Color BtLockedColor =
bool ToggleIconAlpha = true
bool ToggleCanvasGroupAlpha = false
bool AutoAnimateClick = true
bool AutoPlayButtonFx = false
Color DefaultColor
 Default color of the button image More...

Additional Inherited Members

- Protected Member Functions inherited from Antura.UI.UIButton
virtual void Awake ()
virtual void OnDestroy ()
- Properties inherited from Antura.UI.UIButton
bool IsToggled [get]
bool IsLocked [get]
Button Bt [get]
RectTransform RectT [get]
Image BtImg [get]
Image Ico [get, set]
CanvasGroup CGroup [get]

Detailed Description

Button used to select a color for an item in the Antura Space scene.

Member Function Documentation

◆ Lock()

override void Antura.AnturaSpace.UI.AnturaSpaceSwatchButton.Lock ( bool  _doLock)

Reimplemented from Antura.UI.UIButton.

◆ SetAsNew()

void Antura.AnturaSpace.UI.AnturaSpaceSwatchButton.SetAsNew ( bool  _isNew)

◆ SetColors()

void Antura.AnturaSpace.UI.AnturaSpaceSwatchButton.SetColors ( Color  _color0,
Color  _color1 

Member Data Documentation

◆ ColorImgs

Image [] Antura.AnturaSpace.UI.AnturaSpaceSwatchButton.ColorImgs

◆ Data

RewardColorItem Antura.AnturaSpace.UI.AnturaSpaceSwatchButton.Data

◆ IcoLock

GameObject Antura.AnturaSpace.UI.AnturaSpaceSwatchButton.IcoLock

◆ IcoNew

GameObject Antura.AnturaSpace.UI.AnturaSpaceSwatchButton.IcoNew

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