DayZ 1.24
Loading...
Searching...
No Matches
ContainerWithElectricManager Class Reference
Inheritance diagram for ContainerWithElectricManager:
[legend]
Collaboration diagram for ContainerWithElectricManager:
[legend]

Private Member Functions

override void UpdateInterval ()
 
override void SetEntity (EntityAI entity, bool immedUpdate=true)
 
void ElectricityIcon ()
 

Detailed Description

Definition at line 1 of file ContainerWithElectricManager.c.

Member Function Documentation

◆ ElectricityIcon()

void ContainerWithElectricManager::ElectricityIcon ( )
inlineprivate

Definition at line 18 of file ContainerWithElectricManager.c.

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 }
EntityAI m_Entity
Definition ActionDebug.c:11
proto native Widget FindAnyWidget(string pathname)

References FindAnyWidget(), and m_Entity.

Referenced by SetEntity(), and UpdateInterval().

◆ SetEntity()

override void ContainerWithElectricManager::SetEntity ( EntityAI entity,
bool immedUpdate = true )
inlineprivate

Definition at line 11 of file ContainerWithElectricManager.c.

References ElectricityIcon().

◆ UpdateInterval()

override void ContainerWithElectricManager::UpdateInterval ( )
inlineprivate

Definition at line 3 of file ContainerWithElectricManager.c.

4 {
5 super.UpdateInterval();
6
7 if (m_Entity)
9 }

References ElectricityIcon(), and m_Entity.


The documentation for this class was generated from the following file: