DayZ
1.24
Loading...
Searching...
No Matches
ContainerWithElectricManager.c
Go to the documentation of this file.
1
class
ContainerWithElectricManager
: ContainerWithCargoAndAttachments
2
{
3
override
void
UpdateInterval
()
4
{
5
super
.UpdateInterval();
6
7
if
(
m_Entity
)
8
ElectricityIcon
();
9
}
10
11
override
void
SetEntity
(
EntityAI
entity
,
bool
immedUpdate
=
true
)
12
{
13
super
.SetEntity(
entity
,
immedUpdate
);
14
15
ElectricityIcon
();
16
}
17
18
void
ElectricityIcon
()
19
{
20
if
(GetRootWidget().
FindAnyWidget
(
"electricity"
))
21
{
22
bool
hasElectricityIcon
=
m_Entity
.GetCompEM().HasElectricityIcon();
23
GetRootWidget().FindAnyWidget(
"electricity"
).Show(
hasElectricityIcon
);
24
}
25
26
if
(GetRootWidget().
FindAnyWidget
(
"electricity_can_work"
))
27
{
28
bool
electricityCanWorkIcon
=
m_Entity
.GetCompEM().CanWork() && !
m_Entity
.IsRuined();
29
GetRootWidget().FindAnyWidget(
"electricity_can_work"
).Show(
electricityCanWorkIcon
);
30
}
31
}
32
}
m_Entity
EntityAI m_Entity
Definition
ActionDebug.c:11
ContainerWithElectricManager
Definition
ContainerWithElectricManager.c:2
ContainerWithElectricManager::ElectricityIcon
void ElectricityIcon()
Definition
ContainerWithElectricManager.c:18
ContainerWithElectricManager::UpdateInterval
override void UpdateInterval()
Definition
ContainerWithElectricManager.c:3
ContainerWithElectricManager::SetEntity
override void SetEntity(EntityAI entity, bool immedUpdate=true)
Definition
ContainerWithElectricManager.c:11
EntityAI
Definition
Building.c:6
Param3
Definition
EntityAI.c:95
FindAnyWidget
proto native Widget FindAnyWidget(string pathname)
scripts
5_Mission
GUI
InventoryNew
Inherited
ContainerWithElectricManager.c
Generated by
1.10.0