Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_XPInfoDisplayInventory.c
Go to the documentation of this file.
1
class
SCR_XPInfoDisplayInventory
:
SCR_ScriptedWidgetComponent
2
{
3
protected
SCR_XPInfoDisplay
m_XPInfoDisplay
;
4
5
protected
SCR_XPInfoDisplay
GetXPInfoDisplay
()
6
{
7
SCR_HUDManagerComponent
hudManager =
GetGame
().
GetHUDManager
();
8
if
(!hudManager)
9
return
null;
10
11
return
SCR_XPInfoDisplay
.Cast(hudManager.
FindInfoDisplay
(
SCR_XPInfoDisplay
));
12
}
13
14
override
void
HandlerAttached
(
Widget
w)
15
{
16
if
(!
GetGame
().InPlayMode())
17
return
;
18
19
super.HandlerAttached(w);
20
21
22
SCR_TaskManagerUIComponent
taskManager =
SCR_TaskManagerUIComponent
.
GetInstance
();
23
m_XPInfoDisplay
=
GetXPInfoDisplay
();
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
{
37
if
(
m_XPInfoDisplay
)
38
m_XPInfoDisplay
.RemoveWidgetsById(
SCR_EXPInfoWidget
.INVENTORY);
39
40
super.HandlerDeattached(w);
41
}
42
}
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
SCR_EXPInfoWidget
SCR_EXPInfoWidget
Definition
SCR_XPInfoDisplay.c:349
SCR_HUDManagerComponent
Definition
SCR_HUDManagerComponent.c:24
SCR_HUDManagerComponent::FindInfoDisplay
SCR_InfoDisplay FindInfoDisplay(typename type)
Return hud component of given type.
Definition
SCR_HUDManagerComponent.c:257
SCR_HUDManagerComponent::GetHUDManager
static SCR_HUDManagerComponent GetHUDManager()
Definition
SCR_HUDManagerComponent.c:419
SCR_ScriptedWidgetComponent
Definition
SCR_ScriptedWidgetComponent.c:8
SCR_ScriptedWidgetComponent::m_wRoot
Widget m_wRoot
Definition
SCR_ScriptedWidgetComponent.c:9
SCR_TaskManagerUIComponent
Definition
SCR_TaskManagerUIComponent.c:27
SCR_TaskManagerUIComponent::GetInstance
static SCR_TaskManagerUIComponent GetInstance()
Definition
SCR_TaskManagerUIComponent.c:436
SCR_XPInfoDisplay
Definition
SCR_XPInfoDisplay.c:2
SCR_XPInfoDisplayInventory
Definition
SCR_XPInfoDisplayInventory.c:2
SCR_XPInfoDisplayInventory::m_XPInfoDisplay
SCR_XPInfoDisplay m_XPInfoDisplay
Definition
SCR_XPInfoDisplayInventory.c:3
SCR_XPInfoDisplayInventory::HandlerAttached
override void HandlerAttached(Widget w)
Definition
SCR_XPInfoDisplayInventory.c:14
SCR_XPInfoDisplayInventory::HandlerDeattached
override void HandlerDeattached(Widget w)
Definition
SCR_XPInfoDisplayInventory.c:35
SCR_XPInfoDisplayInventory::GetXPInfoDisplay
SCR_XPInfoDisplay GetXPInfoDisplay()
Definition
SCR_XPInfoDisplayInventory.c:5
Widget
Definition
Widget.c:13
scripts
Game
UI
HUD
SCR_XPInfoDisplayInventory.c
Generated by
1.17.0