DIFF

class ConstructionMaterialInfoIcon

ConstructionMaterialInfoIcon › ConstructionInfoIcon › GenericIconBase › SlotsIconBase › LayoutHolder › ScriptedWidgetEventHandler › Managed

Constants 2

const string QUANTITY_TEXT_COLOR_DARKER_ARGB = "0xFF7C7C7C"
const string QUANTITY_TEXT_COLOR_LIGHTER_ARGB = "0xFFC8C8C8"

Members 6

protected bool m_ProcessDataChanges

only true when a part or target entity changed //TODO: figure out something better?

protected int m_LastAppliedQuantity = -1
protected int m_LastAppliedRequired = -1
protected int m_LastAppliedRuined = -1
protected EntityAI m_TargetedEntity

owner of the construction part (and inventory)

Methods 17

override protected void InitIcon(LayoutHolder parent, Widget root, int index, EntityAI slot_parent)
void SetTargetEntity(EntityAI targetEnt)
override void ResetIconValues()
override void Clear()
protected bool IsMaterialRuined()
Referenced by ComputeIconState()
protected void ResetIconState()

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

override void SetQuantity()

only refreshes the quantity here, condition-driven quantity visuals are handled by ApplyIconState

override protected int GetContextualSlotMax()