SUIScrollbar
العميلالمكونات
في هذا الصنفOnValueChanged
الأعضاء 10
| دالة | OnValueChanged | Handling for when the scrollbar value is changed. |
| خاصية | Size | The size of the scrollbar handle where 1 means it fills the entire scrollbar. |
| خاصية | Value | The current value of the scrollbar, between 0 and 1. |
| خاصية | NumberOfSteps | – |
| خاصية | NormalColor | – |
| خاصية | HighlightedColor | – |
| خاصية | PressedColor | – |
| خاصية | DisabledColor | – |
| خاصية | ColorMultiplier | – |
| خاصية | GameObject | – |
OnValueChanged
void OnValueChanged(Closure callback)
Handling for when the scrollbar value is changed.
المعاملات
| الاسم | النوع | القيمة الافتراضية |
|---|---|---|
| callback | Closure | – |
القيم المرجعة
void
مثال
Lua
function OCV()
--
end
Space.Host.ExecutingObject.UIScrollbar.OnValueChanged(OCV)
الخصائص
Size
float Size {get; set; }
The size of the scrollbar handle where 1 means it fills the entire scrollbar.
مثال
Lua
Space.Host.ExecutingObject.UIScrollbar.Size = 0.1
Value
float Value {get; set; }
The current value of the scrollbar, between 0 and 1.
مثال
Lua
Space.Host.ExecutingObject.UIScrollbar.Value = 0.5
NumberOfSteps
int NumberOfSteps {get; set; }
مثال
Lua
Space.Host.ExecutingObject.UIScrollbar.NumberOfSteps = 2
NormalColor
مثال
Lua
Space.Host.ExecutingObject.UIScrollbar.NormalColor = Color.Red
HighlightedColor
مثال
Lua
Space.Host.ExecutingObject.UIScrollbar.HighlightedColor = Color.Red
PressedColor
مثال
Lua
Space.Host.ExecutingObject.UIScrollbar.PressedColor = Color.Red
DisabledColor
مثال
Lua
Space.Host.ExecutingObject.UIScrollbar.DisabledColor = Color.Red
ColorMultiplier
float ColorMultiplier {get; set; }
مثال
Lua
Space.Host.ExecutingObject.UIScrollbar.ColorMultiplier = Color.Red
GameObjectللقراءة فقط
مثال
Lua
theGameObject = Space.Host.ExecutingObject.UIScrollbar.GameObject



