Skip to content

TextButton

IliasHDZ edited this page Apr 21, 2020 · 1 revision

TextButton : UIElement

A TextButton is a button you can press.

Properties

Color BackgroundColor

This is the color of the background box of the TextButton.

Color ClickBackgroundColor

This is the color of the background box of the TextButton when it is pressed.

boolean Clicked [read-only]

This returns true when the button is pressed, otherwise it returns false.

Color ClickTextColor

This is the color of the text of the TextButton when it is pressed.

string Text

This is the text displayed on the TextButton.

Color TextColor

This is the color of the text of the TextButton.

Events

(Events are used like so object.Event(function() --[[code]] end))

OnClick()

This event triggers whenever the button is pressed then release with in both cases is the mouse on the TextButton.

OnPress()

This event triggers whenever the TextButton is pressed.