Arma Reforger Script API
|
Public Member Functions | |
override void | HandlerAttached (Widget w) |
override void | HandlerDeattached (Widget w) |
override bool | OnFocus (Widget w, int x, int y) |
void | SetValue (float value) |
ScriptInvoker | GetOnChangedFinal () |
float | GetValue () |
void | SetFormatText (string text) |
string | GetFormatText () |
void | ShowCustomValue (string value) |
void | SetSliderSettings (float min, float max, float step, string formatText=string.Empty) |
void | SetMin (float min) |
void | SetMax (float max) |
void | SetStep (float step) |
float | GetMin () |
float | GetMax () |
float | GetStep () |
void | SetShownValueMultiplier (float multiplier) |
float | GetShownValueMultiplier () |
Public Member Functions inherited from SCR_ChangeableComponentBase | |
override void | HandlerAttached (Widget w) |
override bool | OnFocus (Widget w, int x, int y) |
override bool | OnFocusLost (Widget w, int x, int y) |
override bool | OnMouseEnter (Widget w, int x, int y) |
override bool | OnMouseLeave (Widget w, Widget enterW, int x, int y) |
TextWidget | GetLabel () |
void | SetLabel (string label) |
void | UseLabel (bool use) |
bool | IsUsingLabel () |
Widget | GetLabelWidget () |
If label is not used, label widget might not exist at all! | |
void | SetSizeWithLabel (float size) |
void | SetSizeWithoutLabel (float size) |
Public Member Functions inherited from SCR_WLibComponentBase | |
override void | HandlerAttached (Widget w) |
override bool | OnClick (Widget w, int x, int y, int button) |
override bool | OnMouseEnter (Widget w, int x, int y) |
override bool | OnFocus (Widget w, int x, int y) |
void | SetHoverSound (string soundHover) |
void | SetClickedSound (string soundClicked) |
string | GetHoverSound () |
string | GetClickedSound () |
void | SetEnabled (bool enabled, bool animate=true) |
void | SetVisible (bool visible, bool animate=true) |
bool | IsEnabled () |
void | SetMouseOverToFocus (bool mouseOverToFocus) |
void | SetDisabledOpacity (float newDisabledOpacity) |
Public Member Functions inherited from SCR_ScriptedWidgetComponent | |
override void | HandlerAttached (Widget w) |
override bool | OnClick (Widget w, int x, int y, int button) |
Widget | GetRootWidget () |
bool | IsVisible () |
Static Public Member Functions | |
static SCR_SliderComponent | GetSliderComponent (string name, Widget parent, bool searchAllChildren=true) |
Static method to easily find component by providing name and parent. | |
Static Public Member Functions inherited from SCR_WLibComponentBase | |
static bool | SetTexture (ImageWidget widget, ResourceName texture, string image="") |
Static Public Member Functions inherited from SCR_ScriptedWidgetComponent | |
static SCR_ScriptedWidgetComponent | GetComponent (TypeName componentType, string name, Widget parent, bool searchAllChildren=true) |
Base method for component lookup through the widget library. | |
Protected Member Functions | |
void | OnValueChanged (Widget w) |
float | UpdateValue () |
float | RoundValue (float value, int precision) |
void | OnValueFinal (Widget w) |
void | OnSliderFocus () |
void | OnSliderFocusLost () |
Protected Member Functions inherited from SCR_ChangeableComponentBase | |
void | SetupLabel () |
void | ClearLabel () |
Protected Member Functions inherited from SCR_WLibComponentBase | |
void | OnEnabled (bool animate) |
void | OnDisabled (bool animate) |
bool | IsChildWidget (Widget parent, Widget child) |
void | SetAnimationRate () |
void | PlaySound (string sound) |
Additional Inherited Members | |
Public Attributes inherited from SCR_ChangeableComponentBase | |
ref ScriptInvoker | m_OnChanged = new ScriptInvoker() |
Public Attributes inherited from SCR_ScriptedWidgetComponent | |
ref ScriptInvoker | m_OnClick = new ScriptInvoker |
Static Public Attributes inherited from SCR_WLibComponentBase | |
static const float | START_ANIMATION_RATE = 10001 |
static const float | START_ANIMATION_PERIOD = 250 |
string SCR_SliderComponent.GetFormatText | ( | ) |
float SCR_SliderComponent.GetMax | ( | ) |
float SCR_SliderComponent.GetMin | ( | ) |
ScriptInvoker SCR_SliderComponent.GetOnChangedFinal | ( | ) |
float SCR_SliderComponent.GetShownValueMultiplier | ( | ) |
|
static |
Static method to easily find component by providing name and parent.
Searching all children will go through whole hierarchy, instead of immediate chidren
float SCR_SliderComponent.GetStep | ( | ) |
float SCR_SliderComponent.GetValue | ( | ) |
override void SCR_SliderComponent.HandlerAttached | ( | Widget | w | ) |
Implements SCR_ChangeableComponentBase.
override void SCR_SliderComponent.HandlerDeattached | ( | Widget | w | ) |
override bool SCR_SliderComponent.OnFocus | ( | Widget | w, |
int | x, | ||
int | y | ||
) |
Implements SCR_ChangeableComponentBase.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
void SCR_SliderComponent.SetFormatText | ( | string | text | ) |
void SCR_SliderComponent.SetMax | ( | float | max | ) |
void SCR_SliderComponent.SetMin | ( | float | min | ) |
void SCR_SliderComponent.SetShownValueMultiplier | ( | float | multiplier | ) |
void SCR_SliderComponent.SetSliderSettings | ( | float | min, |
float | max, | ||
float | step, | ||
string | formatText = string::Empty |
||
) |
void SCR_SliderComponent.SetStep | ( | float | step | ) |
void SCR_SliderComponent.SetValue | ( | float | value | ) |
void SCR_SliderComponent.ShowCustomValue | ( | string | value | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |