Home › Engine Lua tables › ForgeUI control types › TextControl

Engine executable. Settings and tools of the game program (CivilizationVI.exe), usable without a mod. Mostly undocumented debug and configuration functionality; descriptions come from analysis of the executable and have not all been tried in the running game.

TextControl

ForgeUI control type (ForgeUI::TextControl). 19 methods, called on an instance with a colon: Controls.SomeName:Method(...).

C++ base classes (from the exe RTTI, see engine classes): ForgeUI::ControlBase. Whether the Lua type also exposes the base class methods was not checked; the methods below are those registered on this type itself.

Method C++ signature printed by the exe Lua signature Owner basis
GetFontSize int GetFontSize( void ) const TextControl:GetFontSize() -> integer unique method name
GetRows int GetRows( void ) TextControl:GetRows() -> integer unique method name
GetText const char* GetText( void ) const TextControl:GetText() -> string neighbouring methods in the code
GetText const char* GetText( void ) TextControl:GetText() -> string neighbouring methods in the code
IsTextTruncated bool IsTextTruncated( void ) const TextControl:IsTextTruncated() -> boolean neighbouring methods in the code
LocalizeAndSetText — TextControl:LocalizeAndSetText() neighbouring methods in the code
LocalizeAndSetText — TextControl:LocalizeAndSetText() neighbouring methods in the code
SetColor — TextControl:SetColor() neighbouring methods in the code
SetColorByName — TextControl:SetColorByName() neighbouring methods in the code
SetFontSize — TextControl:SetFontSize() neighbouring methods in the code
SetForceIME void SetForceIME( bool ) TextControl:SetForceIME(arg1: boolean) unique method name
SetForceNonIME void SetForceNonIME( bool ) TextControl:SetForceNonIME(arg1: boolean) unique method name
SetReduceWidth void SetReduceWidth( float ) TextControl:SetReduceWidth(arg1: number) unique method name
SetString — TextControl:SetString() neighbouring methods in the code
SetText — TextControl:SetText() neighbouring methods in the code
SetText void SetText( const char* ) TextControl:SetText(arg1: string) neighbouring methods in the code
SetTruncateHeight void SetTruncateHeight( float ) TextControl:SetTruncateHeight(arg1: number) unique method name
SetTruncateWidth void SetTruncateWidth( float ) TextControl:SetTruncateWidth(arg1: number) neighbouring methods in the code
SetWrapWidth void SetWrapWidth( float ) TextControl:SetWrapWidth(arg1: number) neighbouring methods in the code