C# Class LeopotamGroup.Gui.Widgets.GuiButton

Button widget.
Inheritance: LeopotamGroup.Gui.Common.GuiEventReceiver
Show file Open project: Leopotam/LeopotamGroupLibraryUnity

Public Properties

Property Type Description
ActiveColor UnityEngine.Color
DisableColor UnityEngine.Color
EnableColor UnityEngine.Color
ScaleOnPress UnityEngine.Vector3
TweenTime float
Visuals GuiWidget[]

Public Methods

Method Description
OnBtnPressed ( GuiEventReceiver sender, GuiTouchEventArg tea ) : void
UpdateAttachedWidgets ( Color color, float time ) : void

Protected Methods

Method Description
Awake ( ) : void
OnDisable ( ) : void
OnEnable ( ) : void

Method Details

Awake() protected method

protected Awake ( ) : void
return void

OnBtnPressed() public method

public OnBtnPressed ( GuiEventReceiver sender, GuiTouchEventArg tea ) : void
sender LeopotamGroup.Gui.Common.GuiEventReceiver
tea GuiTouchEventArg
return void

OnDisable() protected method

protected OnDisable ( ) : void
return void

OnEnable() protected method

protected OnEnable ( ) : void
return void

UpdateAttachedWidgets() public method

public UpdateAttachedWidgets ( Color color, float time ) : void
color UnityEngine.Color
time float
return void

Property Details

ActiveColor public property

Color of pressed state.
public Color,UnityEngine ActiveColor
return UnityEngine.Color

DisableColor public property

Color of disabled state.
public Color,UnityEngine DisableColor
return UnityEngine.Color

EnableColor public property

Color of normal enabled state.
public Color,UnityEngine EnableColor
return UnityEngine.Color

ScaleOnPress public property

Scale on press event.
public Vector3,UnityEngine ScaleOnPress
return UnityEngine.Vector3

TweenTime public property

Tween time of scaling / recoloring on press event.
public float TweenTime
return float

Visuals public property

List of button-frontface widgets.
public GuiWidget[] Visuals
return GuiWidget[]