DIFF

class ConstructionToolInfoIcon

ConstructionToolInfoIcon › ConstructionInfoIcon › GenericIconBase › SlotsIconBase › LayoutHolder › ScriptedWidgetEventHandler › Managed

Members 4

protected bool m_ShowIcon

set from outside (wider context), the icon just handles its own updates

protected ItemBase m_Tool
Referenced by ComputeIconState(), ResetIconValues(), SetTool()
Show 1 more, UpdateInterval()
protected int m_LastAppliedHighlight = -1
protected int m_LastAppliedRuined = -1

Methods 12

override protected void InitIcon(LayoutHolder parent, Widget root, int index, EntityAI slot_parent)
protected void InitGhostIcon()
Referenced by InitIcon()
override void ResetIconValues()
void SetTool(ItemBase tool)
References m_Tool
void SetShowIcon(bool show)
References m_ShowIcon
void ToolCompatibilityWarning(bool show)
protected ConstructionToolIconState ComputeIconState()

Gathers all conditions driving the icon visuals. Override in mods to add conditions.

Referenced by RefreshIconState()
protected void RefreshIconState()

Computes the icon state and applies it when it changed

Referenced by UpdateInterval()
protected void ResetIconState()

resets the applied state fingerprint so the next refresh re-evaluates everything

Referenced by ResetIconValues()
protected bool IsToolRuined()
Referenced by ComputeIconState()