(Added simple examples to all members (21) in SUIInputField) |
m |
||
Line 38: | Line 38: | ||
{{ScriptFunction|string|Text|{ get;set; }|The current value of the input field.|5= <pre>Space.Host.ExecutingObject.UIInputField.Text= "Hello"</pre>}} | {{ScriptFunction|string|Text|{ get;set; }|The current value of the input field.|5= <pre>Space.Host.ExecutingObject.UIInputField.Text= "Hello"</pre>}} | ||
− | {{ScriptFunction|float|FlexibleHeight|{ get;}|The extra relative height this | + | {{ScriptFunction|float|FlexibleHeight|{ get;}|The extra relative height this UIInputField should be allocated if there is additional available space. (Used by the Layout system) |5= <pre>flexHeight = Space.Host.ExecutingObject.UIInputField.FlexibleHeight</pre>}} |
− | {{ScriptFunction|float|FlexibleWidth|{ get;}|The extra relative width this | + | {{ScriptFunction|float|FlexibleWidth|{ get;}|The extra relative width this UIInputField should be allocated if there is additional available space. (Used by the Layout system)|5= <pre>flexWidth = Space.Host.ExecutingObject.UIInputField.FlexibleWidth</pre>}} |
− | {{ScriptFunction|float|MinHeight|{ get;}|The minimum height this | + | {{ScriptFunction|float|MinHeight|{ get;}|The minimum height this UIInputField may be allocated.(Used by the Layout system).|5= <pre>minHeight = Space.Host.ExecutingObject.UIInputField.MinHeight</pre>}} |
− | {{ScriptFunction|float|MinWidth|{ get;}|The minimum width this | + | {{ScriptFunction|float|MinWidth|{ get;}|The minimum width this UIInputField may be allocated. (Used by the Layout system).|5= <pre>minWidth = Space.Host.ExecutingObject.UIInputField.MinWidth</pre>}} |
{{ScriptFunction|bool|MultiLine|{ get;}|If the input field supports multiple lines.|5= <pre>Space.Host.ExecutingObject.UIInputField.MultiLine = true</pre>}} | {{ScriptFunction|bool|MultiLine|{ get;}|If the input field supports multiple lines.|5= <pre>Space.Host.ExecutingObject.UIInputField.MultiLine = true</pre>}} | ||
− | {{ScriptFunction|float|PreferredHeight|{ get;}|The preferred height this | + | {{ScriptFunction|float|PreferredHeight|{ get;}|The preferred height this UIInputField should be allocated if there is sufficient space. (Used by the Layout system)|5= <pre>prefHeight = Space.Host.ExecutingObject.UIInputField.PreferredHeight</pre>}} |
− | {{ScriptFunction|bool|PreferredWidth|{ get; }|The preferred width this | + | {{ScriptFunction|bool|PreferredWidth|{ get; }|The preferred width this UIInputField should be allocated if there is sufficient space. (Used by the Layout system)|5= <pre>prefWidth = Space.Host.ExecutingObject.UIInputField.PreferredWidth</pre>}} |
{{Scripting Navbox}} | {{Scripting Navbox}} |
Given function will be called when editing has ended
oee = function() Space.Log("edit ended") end Space.Host.ExecutingObject.UIInputField.OnEndEdit(oee)
Given function will be called when text in Input Field has changed
ovc = function() Space.Log("value changed") end Space.Host.ExecutingObject.UIInputField.OnValueChanged(ovc)
The character used for password fields.
Space.Host.ExecutingObject.UIInputField.AsteriskChar= "%"
The blinking rate of the input caret, defined as the number of times the blink cycle occurs per second.
Space.Host.ExecutingObject.UIInputField.CaretBlinkRate= 3
Current InputField caret position (also selection tail).
Space.Host.ExecutingObject.UIInputField.CaretPosition= 3
The width of the caret in pixels.
Space.Host.ExecutingObject.UIInputField.CaretWidth= 4
No documentation
Space.Host.ExecutingObject.UIInputField.CharacterLimit= 8
Whether this Input Field component is Enabled or not
Space.Host.ExecutingObject.UIInputField.Enabled= true
Is the Input Field interactable?
Space.Host.ExecutingObject.UIInputField.Interactable= true
Does the InputField currently have focus and is able to process events.
hasFocus = Space.Host.ExecutingObject.UIInputField.IsFocused
Set the InputField to be read only.
Space.Host.ExecutingObject.UIInputField.ReadOnly= true
The beginning point of the selection.
Space.Host.ExecutingObject.UIInputField.SelectionAnchorPosition= 1
The end point of the selection.
Space.Host.ExecutingObject.UIInputField.SelectionFocusPosition= 4
The current value of the input field.
Space.Host.ExecutingObject.UIInputField.Text= "Hello"
The extra relative height this UIInputField should be allocated if there is additional available space. (Used by the Layout system)
flexHeight = Space.Host.ExecutingObject.UIInputField.FlexibleHeight
The extra relative width this UIInputField should be allocated if there is additional available space. (Used by the Layout system)
flexWidth = Space.Host.ExecutingObject.UIInputField.FlexibleWidth
The minimum height this UIInputField may be allocated.(Used by the Layout system).
minHeight = Space.Host.ExecutingObject.UIInputField.MinHeight
The minimum width this UIInputField may be allocated. (Used by the Layout system).
minWidth = Space.Host.ExecutingObject.UIInputField.MinWidth
If the input field supports multiple lines.
Space.Host.ExecutingObject.UIInputField.MultiLine = true
The preferred height this UIInputField should be allocated if there is sufficient space. (Used by the Layout system)
prefHeight = Space.Host.ExecutingObject.UIInputField.PreferredHeight
The preferred width this UIInputField should be allocated if there is sufficient space. (Used by the Layout system)
prefWidth = Space.Host.ExecutingObject.UIInputField.PreferredWidth
|