wiki.sine.space | sinespace

Difference between revisions of "Scripting/SUIToggle"

From wiki.sine.space
Jump to: navigation, search
(Added and defined all members of SUIToggle (4))
 
(Replaced content with "This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/suitoggle")
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Members=
+
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/suitoggle
{{ScriptFunction|void|OnValueChanged|(Closure callback)|Binds a function to be triggered when value of the UIToggle changes|5=<pre>ovc = function()
+
  Space.Log("Toggled")
+
  end
+
Space.Host.ExecutingObject.UIToggle.OnValueChanged(ovc)</pre>}}
+
 
+
 
+
 
+
=Properties=
+
 
+
{{ScriptFunction|bool|Enabled|{ get;set; }|Whether the UIToggle is Enabled or not|5= <pre>Space.Host.ExecutingObject.UIToggle.Enabled = true</pre>}}
+
 
+
{{ScriptFunction|bool|Interactable|{ get;set; }|Whether the UIToggle is Interactable or not|5= <pre>Space.Host.ExecutingObject.UIToggle.Interactable = true</pre>}}
+
 
+
{{ScriptFunction|bool|IsOn|{ get;set; }|Whether the UIToggle is toggled On or Off|5= <pre>Space.Host.ExecutingObject.UIToggle.IsOn = true</pre>}}
+
 
+
 
+
{{Scripting Navbox}}
+

Latest revision as of 06:47, 19 September 2022

This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/suitoggle