Button
Last updated
Was this helpful?
Last updated
Was this helpful?
The Button GUI Object is a simple icon to attach Logic to. It can be configured so that something occurs when it is clicked in tandem with using the . A Button's text, placement, and size can be altered using the .
The Object's Attributes can be used to fully customize the Object. Explained below, they are:
The Text
Attributes customize the textual elements of a Button.
Text
is the text itself which will be displayed on the Button. Please note that only text which fits within the confines of the Button will be displayed. Size the Button accordingly.
Transform
can easily change certain text aesthetics without requiring the user to change the Text
Attribute itself. Capitalize
makes the first letter capital, uppercase
makes all letters capital, and lowercase
makes all letters lowercase.
Font size (px)
determines the size of the font in pixels.
Font color
decides the color of the Button's text.
The Button
Attributes provide crucial visual aspects for a Button Object.
Background Color
determines the color of the Button itself. In the example image above, it is green.
Border radius (px)
decides to what extent the corners and edges of the Button are rounded.
Class names
contain the CSS class names of the Object.
Stylesheet
contains the CSS stylesheet of the Object.
The Transformation
Attributes deal with placement, rotation, and size in XY space. More information can be found .
Font family
offers three different font types: monospace
, sans-serif
, and serif
. More fonts can be added by the user in .
The Code
Attributes allow for more customizability. This can override any stylesheet provided in the or a .
To address these in the Logic, please refer to the .
This Attribute manages the tags for the Button. See more on tags