3 override void UpdateInterval()
5 super.UpdateInterval();
11 override void SetEntity(
EntityAI entity,
bool immedUpdate =
true)
13 super.SetEntity(entity, immedUpdate);
18 void ElectricityIcon()
22 bool hasElectricityIcon =
m_Entity.GetCompEM().HasElectricityIcon();
23 GetRootWidget().FindAnyWidget(
"electricity").Show(hasElectricityIcon);
28 bool electricityCanWorkIcon =
m_Entity.GetCompEM().CanWork() && !
m_Entity.IsRuined();
29 GetRootWidget().FindAnyWidget(
"electricity_can_work").Show(electricityCanWorkIcon);