π Constructor
local my_text_block = WGUI.Create(TextBlock, nil, default_text)
π¦ Functions
SetText
TextBlock:SetText(Text)
GetText
β Returns string.
local ret = TextBlock:GetText()
SetMinDesiredWidth
TextBlock:SetMinDesiredWidth(MinDesiredWidth)
GetMinDesiredWidth
β Returns number.
local ret = TextBlock:GetMinDesiredWidth()
SetAutoWrapText
TextBlock:SetAutoWrapText(AutoWrap?)
GetAutoWrapText
β Returns boolean.
local ret = TextBlock:GetAutoWrapText()
SetFont
TextBlock:SetFont(FontName?, Typeface?, FontSize?)
GetFont
β Returns table.
local ret = TextBlock:GetFont()
SetLetterSpacing
TextBlock:SetLetterSpacing(InLetterSpacing)
GetLetterSpacing
β Returns table.
local ret = TextBlock:GetFont()
SetFontOutlineSettings
TextBlock:SetLetterSpacing(FontOutlineSettings)
GetFontOutlineSettings
β Returns FontOutlineSettings.
local ret = TextBlock:GetFontOutlineSettings()
SetShadowSettings
TextBlock:SetShadowSettings(Color, Offset)
GetShadowSettings
β Returns Color, Vector2D
local ret = TextBlock:GetShadowSettings()
SetJustification
TextBlock:SetJustification(InJustification)
GetJustification
β Returns TextJustify.
local ret = TextBlock:GetJustification()
SetCaseMode
TextBlock:SetCaseMode(CaseMode)
GetCaseMode
β Returns CaseMode.
local ret = TextBlock:GetCaseMode()
SetOverflowMode
TextBlock:SetOverflowMode(OverflowMode)
GetOverflowMode
β Returns OverflowMode.
local ret = TextBlock:GetOverflowMode()