Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_XPInfoDisplayInventory.c
Go to the documentation of this file.
2{
4
6 {
8 if (!hudManager)
9 return null;
10
12 }
13
14 override void HandlerAttached(Widget w)
15 {
16 if (!GetGame().InPlayMode())
17 return;
18
19 super.HandlerAttached(w);
20
21
24 if (!m_XPInfoDisplay || !taskManager)
25 {
26 w.SetVisible(false);
27 return;
28 }
29
30 SCR_XPInfoWidgetData hudXPWidget = new SCR_XPInfoWidgetData();
31 hudXPWidget.InitWidgets(m_wRoot);
32 m_XPInfoDisplay.AddNewWidgets(hudXPWidget, SCR_EXPInfoWidget.INVENTORY);
33 }
34
35 override void HandlerDeattached(Widget w)
36 {
38 m_XPInfoDisplay.RemoveWidgetsById(SCR_EXPInfoWidget.INVENTORY);
39
40 super.HandlerDeattached(w);
41 }
42}
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_EXPInfoWidget
SCR_InfoDisplay FindInfoDisplay(typename type)
Return hud component of given type.
static SCR_HUDManagerComponent GetHUDManager()
static SCR_TaskManagerUIComponent GetInstance()
override void HandlerAttached(Widget w)
override void HandlerDeattached(Widget w)