Sinespace Client 2025.3.19431
Client-side scripting for Sinespace
SineSpace.Scripting.Components.SUIScrollbar Class Reference
Inheritance diagram for SineSpace.Scripting.Components.SUIScrollbar:
ScriptClassComponent< T > ScriptClass< T > ScriptClassWrapper< T > ScriptClass

Public Member Functions

void SetValueWithoutNotify (float value)
 Set the current value of the scrollbar, but do NOT call OnValueChanged.
 
void OnValueChanged (Closure callback)
 Handling for when the scrollbar value is changed.
 
- Public Member Functions inherited from ScriptClassWrapper< T >
override void Initialise (SScript runtime, object wrapper)
 
- Public Member Functions inherited from ScriptClass
void ReportError (string error, bool fatal, UnityEngine.Object target=null)
 
void Initialise (SScript runtime, object wrapper)
 

Properties

float Size [get, set]
 The size of the scrollbar handle where 1 means it fills the entire scrollbar.
 
float Value [get, set]
 The current value of the scrollbar, between 0 and 1.
 
int NumberOfSteps [get, set]
 The number of steps to use for the value. A value of 0 disables use of steps.
 
SColor NormalColor [get, set]
 The normal color of the control.
 
SColor HighlightedColor [get, set]
 The color of the control when it is highlighted.
 
SColor PressedColor [get, set]
 The color of the control when it is pressed.
 
SColor DisabledColor [get, set]
 The color of the control when it is disabled.
 
float ColorMultiplier [get, set]
 This multiplies the tint color for each transition by its value. With this you can create colors greater than 1 to brighten the colors on graphic elements whose base color is less than white (or less then full alpha).
 
- Properties inherited from ScriptClassComponent< T >
SGameObject GameObject [get]
 Return the GameObject which component added.
 
- Properties inherited from ScriptClass< T >
override bool Alive [get]
 Return if the component is alive.
 
- Properties inherited from ScriptClassWrapper< T >
_wrap [get]
 
- Properties inherited from ScriptClass
virtual bool Alive [get]
 
DynValue CachedData [get, set]
 

Additional Inherited Members

- Protected Member Functions inherited from ScriptClass
void Initialise (SScript runtime)
 

Member Function Documentation

◆ OnValueChanged()

void SineSpace.Scripting.Components.SUIScrollbar.OnValueChanged ( Closure callback)

Handling for when the scrollbar value is changed.

local scrollbar=Space.Host.GetReference("Scrollbar").UIScrollbar
scrollbar.OnValueChanged(function ()
Space.Log("ValueChanged!")
end)
Parameters
callbackthe script function named "callback"

◆ SetValueWithoutNotify()

void SineSpace.Scripting.Components.SUIScrollbar.SetValueWithoutNotify ( float value)

Set the current value of the scrollbar, but do NOT call OnValueChanged.

local scrollbar=Space.Host.GetReference("Scrollbar").UIScrollbar
scrollbar.SetValueWithoutNotify(1.0)

Property Documentation

◆ ColorMultiplier

float SineSpace.Scripting.Components.SUIScrollbar.ColorMultiplier
getset

This multiplies the tint color for each transition by its value. With this you can create colors greater than 1 to brighten the colors on graphic elements whose base color is less than white (or less then full alpha).

local scrollbar=Space.Host.GetReference("Scrollbar").UIScrollbar
Space.Log(scrollbar.ColorMultiplier)

◆ DisabledColor

SColor SineSpace.Scripting.Components.SUIScrollbar.DisabledColor
getset

The color of the control when it is disabled.

local scrollbar=Space.Host.GetReference("Scrollbar").UIScrollbar
Space.Log(scrollbar.DisabledColor.ToString())

◆ HighlightedColor

SColor SineSpace.Scripting.Components.SUIScrollbar.HighlightedColor
getset

The color of the control when it is highlighted.

local scrollbar=Space.Host.GetReference("Scrollbar").UIScrollbar
Space.Log(scrollbar.HighlightedColor.ToString())

◆ NormalColor

SColor SineSpace.Scripting.Components.SUIScrollbar.NormalColor
getset

The normal color of the control.

local scrollbar=Space.Host.GetReference("Scrollbar").UIScrollbar
Space.Log(scrollbar.NormalColor.ToString())

◆ NumberOfSteps

int SineSpace.Scripting.Components.SUIScrollbar.NumberOfSteps
getset

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

local scrollbar=Space.Host.GetReference("Scrollbar").UIScrollbar
Space.Log(scrollbar.NumberOfSteps)

◆ PressedColor

SColor SineSpace.Scripting.Components.SUIScrollbar.PressedColor
getset

The color of the control when it is pressed.

local scrollbar=Space.Host.GetReference("Scrollbar").UIScrollbar
Space.Log(scrollbar.PressedColor.ToString())

◆ Size

float SineSpace.Scripting.Components.SUIScrollbar.Size
getset

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

local scrollbar=Space.Host.GetReference("Scrollbar").UIScrollbar
Space.Log(scrollbar.Size)

◆ Value

float SineSpace.Scripting.Components.SUIScrollbar.Value
getset

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

local scrollbar=Space.Host.GetReference("Scrollbar").UIScrollbar
Space.Log(scrollbar.Value)