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
HorizontalAlignmentandVerticalAlignmentproperties are replaced with analignprop of typeAlign.TextXAlignmentandTextYAlignmentproperties are replaced with atextAlignprop of typeAlign.- Properties of enums are replaced with string literals.
positionandanchorPointproperties support theAligntype for convenience.ScreenGui'sEnabledproperty and theVisibleproperty of gui objects are controlled with thehideproperty, setting it to true will setVisibleorEnabledto false.- The
autoLocalizeproperty is only able to be set on objects with atextfield. AnautoLocalizeContextis provided for providing a defaultAutoLocalizevalue to descendants.
Custom types
Align: "TopLeft" | "Top" | "TopRight"
| "Left" | "Center" | "Right"
| "BottomLeft" | "Bottom" | "BottomRight"