Button
A component that provides a strong base for interactive elements.
Properties
Appearance
Appearance
Type
Code block has not loaded. An error may have occurred.
Stroke
Stroke
Type
Code block has not loaded. An error may have occurred.
TweenSettings
TweenSettings
The tween settings for transitioning between appearances.
Type
Code block has not loaded. An error may have occurred.
CornerRadius
CornerRadius
Type
Code block has not loaded. An error may have occurred.
Padding
Padding
Type
Code block has not loaded. An error may have occurred.
Content
Content
Type
Code block has not loaded. An error may have occurred.
OnClick
OnClick
Type
Code block has not loaded. An error may have occurred.
OnMouseButton2Click
OnMouseButton2Click
Type
Code block has not loaded. An error may have occurred.
OnMouseButton1Changed
OnMouseButton1Changed
This event is fired when the left mouse button is pressed or released.
Something to note is that when the mouse leaves the button, this event fires with false
.
This is done as a safety measure to ensure that the button is not stuck in a pressed state.
Type
Code block has not loaded. An error may have occurred.
OnMouseButton2Changed
OnMouseButton2Changed
This event is fired when the right mouse button is pressed or released.
Something to note is that when the mouse leaves the button, this event fires with false
.
This is done as a safety measure to ensure that the button is not stuck in a pressed state.
Type
Code block has not loaded. An error may have occurred.
OnHover
OnHover
Type
Code block has not loaded. An error may have occurred.
DisableHoverLighting
DisableHoverLighting
By default, the button will lighten on the mouse position when hovered. This property disables that effect.
Type
Code block has not loaded. An error may have occurred.
Instance Properties
Instance Properties
This instance takes all the properties of a TextButton
. SpecialKeys
, such as fusion.Children
will also be passed to the instance.