Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionShowWidget.c
Go to the documentation of this file.
3{
4 [Attribute(defvalue: "", desc: "Layout", uiwidget: UIWidgets.ResourcePickerThumbnail, params: "layout")]
5 ResourceName m_sLayout;
6
7 [Attribute(defvalue: "0", desc: "Duration", params: "0 inf")]
8 int m_iHideTimeDelay;
9
10 [Attribute()]
11 protected ref array<string> m_aLines;
12
14 protected Widget m_wRoot;
15
16 //------------------------------------------------------------------------------------------------
17 override void OnActivate(IEntity object)
18 {
19 if (!CanActivate())
20 return;
21
22 m_wRoot = GetGame().GetWorkspace().CreateWidgets(m_sLayout);
26 }
27
28 protected void OnDeactivate()
29 {
31 }
32
34 {
35 SCR_ScenarioFrameworkSystem.GetCallQueuePausable().CallLater(OnDeactivate, m_iHideTimeDelay * 1000, false);
36 }
37
39 {
40 m_wRoot.RemoveFromHierarchy();
41 }
42
43 //------------------------------------------------------------------------------------------------
45 {
46 if (m_wRoot)
47 m_wRoot.RemoveFromHierarchy()
48 }
49}
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
static ScriptCallQueue GetCallQueuePausable()
SCR_FieldOfViewSettings Attribute