< Previous | Contents | Next >
UI Create
There are 3 UI input controls for text inputs, and will have a data type of text. TextEditControl is a text input UI box that can be typed into as well as cut and paste. This Fuse also shows creating a separate Function that can be called from Process.
function Create()
InText = self:AddInput("Styled Text", "StyledText", { LINKID_DataType = "Text",
INPID_InputControl = "TextEditControl",
TEC_Lines = 3, -- How many lines high is the Input.
})
InFont = self:AddInput("Font", "Font", { LINKID_DataType = "Text", INPID_InputControl = "FontFileControl", IC_ControlGroup = 2,
IC_ControlID = 0,
INP_Level = 1, INP_DoNotifyChanged = true,
})
InFontStyle = self:AddInput("Style", "Style", { LINKID_DataType = "Text", INPID_InputControl = "FontFileControl", IC_ControlGroup = 2,
IC_ControlID = 1,
INP_Level = 1, INP_DoNotifyChanged = true,
})
FontFileControl UI list controls will dynamically adjust list items and are used to get installed font lists from the OS. This can also be used to get the weight formatting of the font like Regular, Bold, and Light.