Arma Reforger Script API
|
Public Member Functions | |
void | HideAndDelete () |
Hides the overlay. The overlay will be destroyed, and the SCR_LoadingOverlay component will be deleted. | |
void | SetShown (bool show) |
Shows or hides the overlay. The overlay is not destroyed if hidden and can be shown again. | |
void | SetText (string text) |
void | ShowBackground (bool show) |
void | ShowBlur (bool show) |
Widget | GetRootWidget () |
void | SetFocus () |
Sets the fake button as focused widget, can be used if you need to reset focus from the widgets under this loading overlay. | |
override void | HandlerAttached (Widget w) |
override bool | OnUpdate (Widget w) |
override bool | OnClick (Widget w, int x, int y, int button) |
override bool | OnModalResult (Widget w, int x, int y, int code, int result) |
override bool | OnDoubleClick (Widget w, int x, int y, int button) |
override bool | OnSelect (Widget w, int x, int y) |
override bool | OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn) |
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) |
override bool | OnMouseWheel (Widget w, int x, int y, int wheel) |
override bool | OnMouseButtonDown (Widget w, int x, int y, int button) |
override bool | OnMouseButtonUp (Widget w, int x, int y, int button) |
override bool | OnController (Widget w, int control, int value) |
control is one of ControlID | |
override bool | OnKeyDown (Widget w, int x, int y, int key) |
override bool | OnKeyUp (Widget w, int x, int y, int key) |
override bool | OnKeyPress (Widget w, int x, int y, int key) |
override bool | OnChange (Widget w, int x, int y, bool finished) |
override bool | OnResize (Widget w, int x, int y) |
override bool | OnModalClickOut (Widget modalRoot, int x, int y, int button) |
Static Public Member Functions | |
static SCR_LoadingOverlay | ShowForWidget (Widget targetWidget, string text=string.Empty, bool showBlur=true, bool showBackground=true) |
Shows an overlay over target widget You can call it multiple times for same widget. | |
static void | HideForWidget (Widget targetWidget) |
Hides overlay for given target widget. | |
Public Attributes | |
Widget | m_wRoot |
ref SCR_LoadingOverlayWidgets | widgets |
SCR_LoadingOverlayHelperComponent | m_Helper |
bool | m_bShownAtStart |
Protected Member Functions | |
void | Init (Widget overlayRoot, SCR_LoadingOverlayHelperComponent helper) |
void | SetSizeFromTarget () |
Protected Attributes | |
bool | m_bRenderTopMost = false |
bool | m_bShown = true |
bool | m_bShowBackground |
Widget SCR_LoadingOverlay.GetRootWidget | ( | ) |
override void SCR_LoadingOverlay.HandlerAttached | ( | Widget | w | ) |
void SCR_LoadingOverlay.HideAndDelete | ( | ) |
Hides the overlay. The overlay will be destroyed, and the SCR_LoadingOverlay component will be deleted.
|
static |
Hides overlay for given target widget.
|
protected |
override bool SCR_LoadingOverlay.OnChange | ( | Widget | w, |
int | x, | ||
int | y, | ||
bool | finished | ||
) |
override bool SCR_LoadingOverlay.OnClick | ( | Widget | w, |
int | x, | ||
int | y, | ||
int | button | ||
) |
override bool SCR_LoadingOverlay.OnController | ( | Widget | w, |
int | control, | ||
int | value | ||
) |
control is one of ControlID
override bool SCR_LoadingOverlay.OnDoubleClick | ( | Widget | w, |
int | x, | ||
int | y, | ||
int | button | ||
) |
override bool SCR_LoadingOverlay.OnFocus | ( | Widget | w, |
int | x, | ||
int | y | ||
) |
override bool SCR_LoadingOverlay.OnFocusLost | ( | Widget | w, |
int | x, | ||
int | y | ||
) |
override bool SCR_LoadingOverlay.OnItemSelected | ( | Widget | w, |
int | x, | ||
int | y, | ||
int | row, | ||
int | column, | ||
int | oldRow, | ||
int | oldColumn | ||
) |
override bool SCR_LoadingOverlay.OnKeyDown | ( | Widget | w, |
int | x, | ||
int | y, | ||
int | key | ||
) |
override bool SCR_LoadingOverlay.OnKeyPress | ( | Widget | w, |
int | x, | ||
int | y, | ||
int | key | ||
) |
override bool SCR_LoadingOverlay.OnKeyUp | ( | Widget | w, |
int | x, | ||
int | y, | ||
int | key | ||
) |
override bool SCR_LoadingOverlay.OnModalClickOut | ( | Widget | modalRoot, |
int | x, | ||
int | y, | ||
int | button | ||
) |
override bool SCR_LoadingOverlay.OnModalResult | ( | Widget | w, |
int | x, | ||
int | y, | ||
int | code, | ||
int | result | ||
) |
override bool SCR_LoadingOverlay.OnMouseButtonDown | ( | Widget | w, |
int | x, | ||
int | y, | ||
int | button | ||
) |
override bool SCR_LoadingOverlay.OnMouseButtonUp | ( | Widget | w, |
int | x, | ||
int | y, | ||
int | button | ||
) |
override bool SCR_LoadingOverlay.OnMouseEnter | ( | Widget | w, |
int | x, | ||
int | y | ||
) |
override bool SCR_LoadingOverlay.OnMouseLeave | ( | Widget | w, |
Widget | enterW, | ||
int | x, | ||
int | y | ||
) |
override bool SCR_LoadingOverlay.OnMouseWheel | ( | Widget | w, |
int | x, | ||
int | y, | ||
int | wheel | ||
) |
override bool SCR_LoadingOverlay.OnResize | ( | Widget | w, |
int | x, | ||
int | y | ||
) |
override bool SCR_LoadingOverlay.OnSelect | ( | Widget | w, |
int | x, | ||
int | y | ||
) |
override bool SCR_LoadingOverlay.OnUpdate | ( | Widget | w | ) |
void SCR_LoadingOverlay.SetFocus | ( | ) |
Sets the fake button as focused widget, can be used if you need to reset focus from the widgets under this loading overlay.
void SCR_LoadingOverlay.SetShown | ( | bool | show | ) |
Shows or hides the overlay. The overlay is not destroyed if hidden and can be shown again.
|
protected |
void SCR_LoadingOverlay.SetText | ( | string | text | ) |
void SCR_LoadingOverlay.ShowBackground | ( | bool | show | ) |
void SCR_LoadingOverlay.ShowBlur | ( | bool | show | ) |
|
static |
Shows an overlay over target widget You can call it multiple times for same widget.
If an overlay already exists, new one will not be created, and the old overlay will be returned.
|
protected |
|
protected |
|
protected |
bool SCR_LoadingOverlay.m_bShownAtStart |
SCR_LoadingOverlayHelperComponent SCR_LoadingOverlay.m_Helper |
Widget SCR_LoadingOverlay.m_wRoot |
ref SCR_LoadingOverlayWidgets SCR_LoadingOverlay.widgets |