TextField: Difference between revisions

From Crumbled World Wiki
(Created page with "{{:TextFieldExampleCode}} ==Inheritance== Panel ==Constructor== {| class="wikitable" !|function !|description |- |TextField(PanelSize size) | |- |TextField(PanelSize size, string text) | |- |TextField(PanelSize size, Text text) | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |Text |getText() |Get text. |- |int |getInt() |Get int. |- |float |TextField:getFloat()|ge...")
 
(No difference)

Latest revision as of 14:19, 5 July 2025

TextFieldExampleCode

Inheritance

Panel

Constructor

function description
TextField(PanelSize size)
TextField(PanelSize size, string text)
TextField(PanelSize size, Text text)

Functions

return function description
Text getText() Get text.
int getInt() Get int.
float getFloat() Get float.
setText(string text) Set text.
setText(Text text) Set text.
setWhiteList(string whiteListedChar)
setWhiteList(Text whiteListedChar)
setTextColor(Vec3 color)
setTextColor(Vec4 color)
setSelectedTextAreaColor(Vec3 color)
setSelectedTextAreaColor(Vec4 color)
setBackgroundColor(Vec3 color)
setBackgroundColor(Vec4 color)
setBorderTopEdgeColor(Vec3 color)
setBorderTopEdgeColor(Vec4 color)
setBorderTopInternalColor(Vec3 color)
setBorderTopInternalColor(Vec4 color)
setBorderBottomEdgeColor(Vec3 color)
setBorderBottomEdgeColor(Vec4 color)
setBorderBottomInternalColor(Vec3 color)
setBorderBottomInternalColor(Vec4 color)