Button2D - MalisPierre/ModularGame GitHub Wiki
Button2D: Item2D
ClassDescription:
This Class allow you to setup a Button on a 2d Panel. Button2D inherit from Item2D
Variables:
Color _DefaultColor: The Normal Color of the button
Color _HoverColor: The Color of the button when the mouse is Hover it
Color _ClickedColor: The color of the button when it is clicked
Sprite _DefaultSprite: The Normal Sprite of the button
Sprite _HoverSprite: The Sprite of the button when the mouse is Hover it
Sprite _ClickedSprite: The Sprite of the button when it is clicked
Functions:
Inherit from Item2D, so look for other functions there.
void Activate()
void Desactivate()
Events:
void OnClick()