class ConstructionToolInfoIcon
ConstructionToolInfoIcon › ConstructionInfoIcon › GenericIconBase › SlotsIconBase › LayoutHolder › ScriptedWidgetEventHandler › Managed
Full hierarchyFull members 189
- Managed
- ScriptedWidgetEventHandler
- LayoutHolder
- SlotsIconBase
- GenericIconBase
- ConstructionInfoIcon
- ConstructionToolInfoIcon
- ConstructionInfoIcon
- GenericIconBase
- SlotsIconBase
- LayoutHolder
- ScriptedWidgetEventHandler
Members 4
protected bool m_ShowIconset from outside (wider context), the icon just handles its own updates
protected ItemBase m_Toolprotected int m_LastAppliedHighlight = -1protected int m_LastAppliedRuined = -1Methods 12
override protected void InitIcon(LayoutHolder parent, Widget root, int index, EntityAI slot_parent)protected void InitGhostIcon()References ImageWidget.LoadImageFile(), Widget.SetColor(), ImageWidget.SetImage()
Show 2 more
, SlotsIconBase.m_GhostSlot, and GenericIconBase.m_IconIndexReferenced by InitIcon()
override void ResetIconValues()void SetTool(ItemBase tool)References m_Tool
Referenced by ConstructionActionInfoToolsGrid.UpdateInterval()
void SetShowIcon(bool show)References m_ShowIcon
Referenced by ConstructionActionInfoToolsGrid.UpdateInterval()
void ToolCompatibilityWarning(bool show)Referenced by ConstructionActionInfoToolsGrid.UpdateInterval()
override void UpdateInterval()References ConstructionInfoIcon.Clear(), ConstructionInfoIcon.Init(), LayoutHolder.OnHide()
Show 5 more
, LayoutHolder.OnShow(), RefreshIconState(), SlotsIconBase.UpdateInterval(), m_ShowIcon, and m_ToolReferenced by ConstructionActionInfoToolsGrid.UpdateInterval()
protected ConstructionToolIconState ComputeIconState()Gathers all conditions driving the icon visuals. Override in mods to add conditions.
References new ConstructionToolIconState(), IsToolRuined(), ConstructionToolIconState.m_Highlight
Show 4 more
, GenericIconBase.m_IconIndex, ConstructionToolIconState.m_IsRuined, m_ShowIcon, and m_ToolReferenced by RefreshIconState()
protected void ApplyIconState(ConstructionToolIconState state)Single authority for condition-driven visuals. Override in mods (call super first).
Referenced by RefreshIconState()
protected void RefreshIconState()Computes the icon state and applies it when it changed
References ApplyIconState(), ComputeIconState(), ConstructionToolIconState.m_Highlight
Show 3 more
, ConstructionToolIconState.m_IsRuined, m_LastAppliedHighlight, and m_LastAppliedRuinedReferenced 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()