wiki.sine.space | sinespace

Scripting/SUIScrollbar

From wiki.sine.space
Jump to: navigation, search

Members

OnValueChanged

void OnValueChanged (Closure callback)

Handling for when the scrollbar value is changed.

ovc = function ()
  Space.Log("Scrollbar value changed")
  end
Space.Host.ExecutingObject.UIScrollbar.OnValueChanged(ovc)



Properties

NumberOfSteps

int NumberOfSteps { get; set; }

The number of steps to use for the value. A value of 0 disables use of steps.

Space.Host.ExecutingObject.UIScrollbar.NumberOfSteps = 2


Size

float Size { get; set; }

The size of the scrollbar handle where 1 means it fills the entire scrollbar.

Space.Host.ExecutingObject.UIScrollbar.Size = 0.1


Value

float Value { get; set; }

The current value of the scrollbar, between 0 and 1.

Space.Host.ExecutingObject.UIScrollbar.Value = 0.5