Class ButtonAnimation
Allows changing properties of the button to "animate" it as it moves between states (idle, hover, pushed). Each ButtonAnimation represents one of this states, and can have a different animation (or image), border, background color (tint) or text rendering configuration (font, shadows, etc- ITextConfig).
Inheritance
System.Object
ButtonAnimation
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
[ConcreteImplementation(DisplayName = "Button State Animation")]
public class ButtonAnimation
Constructors
| Improve this Doc View SourceButtonAnimation(IAnimation)
Initializes a new instance of the ButtonAnimation class.
Declaration
public ButtonAnimation(IAnimation animation)
Parameters
Type | Name | Description |
---|---|---|
IAnimation | animation | Animation. |
ButtonAnimation(IAnimation, IBorderStyle, ITextConfig, Nullable<Color>)
Declaration
public ButtonAnimation(IAnimation animation, IBorderStyle border, ITextConfig textConfig, Color? tint)
Parameters
Type | Name | Description |
---|---|---|
IAnimation | animation | |
IBorderStyle | border | |
ITextConfig | textConfig | |
System.Nullable<Color> | tint |
ButtonAnimation(IAnimation, IImage, IBorderStyle, ITextConfig, Nullable<Color>)
Declaration
public ButtonAnimation(IAnimation animation, IImage image, IBorderStyle border, ITextConfig textConfig, Color? tint)
Parameters
Type | Name | Description |
---|---|---|
IAnimation | animation | |
IImage | image | |
IBorderStyle | border | |
ITextConfig | textConfig | |
System.Nullable<Color> | tint |
ButtonAnimation(IBorderStyle, ITextConfig, Nullable<Color>)
Initializes a new instance of the ButtonAnimation class.
Declaration
public ButtonAnimation(IBorderStyle border, ITextConfig textConfig, Color? tint)
Parameters
Type | Name | Description |
---|---|---|
IBorderStyle | border | Border. |
ITextConfig | textConfig | Text config. |
System.Nullable<Color> | tint | Tint. |
ButtonAnimation(IImage, Nullable<Color>)
Initializes a new instance of the ButtonAnimation class.
Declaration
public ButtonAnimation(IImage image, Color? tint = default(Color? ))
Parameters
Type | Name | Description |
---|---|---|
IImage | image | Image. |
System.Nullable<Color> | tint | Tint. |
Properties
| Improve this Doc View SourceAnimation
Gets or sets the animation.
Declaration
public IAnimation Animation { get; }
Property Value
Type | Description |
---|---|
IAnimation | The animation. |
Border
Gets or sets the border.
Declaration
public IBorderStyle Border { get; }
Property Value
Type | Description |
---|---|
IBorderStyle | The border. |
Image
Gets or sets the image.
Declaration
public IImage Image { get; }
Property Value
Type | Description |
---|---|
IImage |
TextConfig
Gets or sets the text rendering configuration.
Declaration
public ITextConfig TextConfig { get; }
Property Value
Type | Description |
---|---|
ITextConfig | The text config. |
Tint
Gets or sets the tint (background color).
Declaration
public Color? Tint { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Color> | The tint. |
Methods
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()