Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SaveWarningComponent.c
Go to the documentation of this file.
2{
3 protected Widget m_wRoot;
6
7 //---------------------------------------------------------------------------------------------
8 override protected void HandlerAttached(Widget w)
9 {
10 m_wRoot = w;
11
12 m_LoadingSpinner = SCR_LoadingSpinner.Cast(w.FindAnyWidget("Spinner").FindHandler(SCR_LoadingSpinner));
13 m_Text = RichTextWidget.Cast(w.FindAnyWidget("m_wText"));
14 }
15
16 void UpdateSpinner(float deltaTime)
17 {
18 m_LoadingSpinner.Update(deltaTime);
19 }
20
21 void SetText(string text)
22 {
23 m_Text.SetText(text);
24 }
25
26 void ShowWarning(bool state)
27 {
28 m_wRoot.SetVisible(state);
29 }
30
31 bool IsSaving()
32 {
33 return m_wRoot.IsVisible();
34 }
35}
void UpdateSpinner(float deltaTime)