wiki.sine.space | sinespace

Difference between revisions of "Scripting/SUIScrollbar"

From wiki.sine.space
Jump to: navigation, search
m
 
Line 1: Line 1:
=Members=
+
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/suiscrollbar
{{ScriptFunction|void|OnValueChanged|(Closure callback)|Handling for when the scrollbar value is changed.|5=<pre>ovc = function ()
+
  Space.Log("Scrollbar value changed")
+
  end
+
Space.Host.ExecutingObject.UIScrollbar.OnValueChanged(ovc)</pre>}}
+
 
+
 
+
 
+
=Properties=
+
 
+
{{ScriptFunction|int|NumberOfSteps|{ get; set; }|The number of steps to use for the value. A value of 0 disables use of steps.|5= <pre>Space.Host.ExecutingObject.UIScrollbar.NumberOfSteps = 2</pre>}}
+
 
+
{{ScriptFunction|float|Size|{ get; set; }|The size of the scrollbar handle where 1 means it fills the entire scrollbar.|5= <pre>Space.Host.ExecutingObject.UIScrollbar.Size = 0.1</pre>}}
+
 
+
{{ScriptFunction|float|Value|{ get; set; }|The current value of the scrollbar, between 0 and 1.|5= <pre>Space.Host.ExecutingObject.UIScrollbar.Value = 0.5</pre>}}
+
 
+
 
+
 
+
{{Scripting Navbox}}
+

Latest revision as of 06:44, 19 September 2022

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