Using Fuel for Roblox UI
Fuel comes bundled with a library of resource definitions for Roblox UI instances. This library is
designed to provide light abstractions over Roblox's API to make writing UI code more elegant. Many
resource properties are simply the same name as their instance counterparts but in camelcase. For
example, AutomaticSize
is automaticSize
. However, some properties have shorter names that are
less verbose. For example, BackgroundColor3
is color
.
Notable differences
HorizontalAlignment
andVerticalAlignment
properties are replaced with analign
prop of typeAlign
.TextXAlignment
andTextYAlignment
properties are replaced with atextAlign
prop of typeAlign
.- Properties of enums are replaced with string literals.
position
andanchorPoint
properties support theAlign
type for convenience.ScreenGui
'sEnabled
property and theVisible
property of gui objects are controlled with thehide
property, setting it to true will setVisible
orEnabled
to false.- The
autoLocalize
property is only able to be set on objects with atext
field. AnautoLocalizeContext
is provided for providing a defaultAutoLocalize
value to descendants.
Custom types
Align: "TopLeft" | "Top" | "TopRight"
| "Left" | "Center" | "Right"
| "BottomLeft" | "Bottom" | "BottomRight"