class ConstructionMaterialInfoIcon
ConstructionMaterialInfoIcon › ConstructionInfoIcon › GenericIconBase › SlotsIconBase › LayoutHolder › ScriptedWidgetEventHandler › Managed
Full hierarchyFull members 193
- Managed
- ScriptedWidgetEventHandler
- LayoutHolder
- SlotsIconBase
- GenericIconBase
- ConstructionInfoIcon
- ConstructionMaterialInfoIcon
- ConstructionInfoIcon
- GenericIconBase
- SlotsIconBase
- LayoutHolder
- ScriptedWidgetEventHandler
Constants 2
const string QUANTITY_TEXT_COLOR_DARKER_ARGB = "0xFF7C7C7C"const string QUANTITY_TEXT_COLOR_LIGHTER_ARGB = "0xFFC8C8C8"Members 6
protected bool m_ProcessDataChangesonly true when a part or target entity changed //TODO: figure out something better?
Referenced by InitIcon(), ResetIconValues(), SetConstructionPart()
Show 2 more
, SetTargetEntity(), and UpdateInterval()protected int m_LastAppliedQuantity = -1protected int m_LastAppliedRequired = -1protected int m_LastAppliedRuined = -1protected EntityAI m_TargetedEntityowner of the construction part (and inventory)
Referenced by CheckDisplayableAttachment(), InitMaterialInfo(), ResetIconValues()
Show 1 more
, SetTargetEntity()protected ConstructionMaterialData m_MaterialDataReferenced by CheckDisplayableAttachment(), GetContextualSlotMax(), InitGhostIcon()
Show 2 more
, InitMaterialInfo(), and ResetIconValues()Methods 17
override protected void InitIcon(LayoutHolder parent, Widget root, int index, EntityAI slot_parent)protected void InitGhostIcon()Referenced by InitMaterialInfo()
void SetTargetEntity(EntityAI targetEnt)Referenced by ConstructionActionInfoMaterialsGrid.UpdateInterval()
override void SetConstructionPart(ConstructionPart part)References ConstructionInfoIcon.SetConstructionPart(), ConstructionInfoIcon.m_Part, and m_ProcessDataChanges
Referenced by ConstructionActionInfoMaterialsGrid.UpdateInterval()
override void ResetIconValues()References ResetIconState(), ConstructionInfoIcon.ResetIconValues(), m_MaterialData
Show 2 more
, m_ProcessDataChanges, and m_TargetedEntityoverride void Clear()protected bool IsMaterialRuined()Referenced by ComputeIconState()
protected ConstructionMaterialIconState ComputeIconState()Gathers all conditions driving the icon visuals. Override in mods to add conditions.
Referenced by RefreshIconState()
protected void ApplyIconState(ConstructionMaterialIconState state)Single authority for condition-driven visuals. Override in mods (call super first).
References Class.Cast(), string.Format(), InventoryItemType.GetGhostIconImagepath()
Show 33 more
, InventoryItem.GetInventoryItemType(), ConstructionMaterialIconState.IsSufficient(), ImageWidget.LoadImageFile(), Widget.SetAlpha(), Widget.SetColor(), Widget.SetColor(), ImageWidget.SetImage(), TextWidget.SetText(), Widget.Show(), Widget.Show(), Widget.Show(), Widget.Show(), Widget.Show(), Widget.Show(), int.ToString(), int.ToString(), int.ToString(), Colors.COLOR_RUINED, ConstructionInfoIcon.COLOR_WIDGET_ALPHA, Colors.DARK_GRAY, SlotsIconBase.m_BlockedWidget, SlotsIconBase.m_ColWidget, SlotsIconBase.m_GhostSlot, ConstructionMaterialIconState.m_IsRuined, SlotsIconBase.m_Item, SlotsIconBase.m_ItemPreview, ConstructionMaterialIconState.m_Quantity, SlotsIconBase.m_QuantityItem, SlotsIconBase.m_QuantityProgress, SlotsIconBase.m_QuantityStack, ConstructionMaterialIconState.m_RequiredQuantity, QUANTITY_TEXT_COLOR_DARKER_ARGB, and QUANTITY_TEXT_COLOR_LIGHTER_ARGBReferenced 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
protected void InitMaterialInfo()References CheckDisplayableAttachment(), array.Count(), ErrorEx()
Show 13 more
, ConstructionPart.GetMaterialsData(), InitGhostIcon(), LayoutHolder.OnHide(), LayoutHolder.OnShow(), SlotsIconBase.SetSlotID(), InventorySlots.INVALID, GenericIconBase.m_IconIndex, ConstructionInfoIcon.m_ItemState, m_MaterialData, ConstructionMaterialData.m_MaterialSlotID, ConstructionMaterialData.m_MaterialSlotName, ConstructionInfoIcon.m_Part, and m_TargetedEntityReferenced by UpdateInterval()
protected bool CheckDisplayableAttachment()override void UpdateInterval()References CheckDisplayableAttachment(), Clear(), InitMaterialInfo()
Show 3 more
, RefreshIconState(), SlotsIconBase.UpdateInterval(), and m_ProcessDataChangesReferenced by ConstructionActionInfoMaterialsGrid.UpdateInterval()
override void SetQuantity()only refreshes the quantity here, condition-driven quantity visuals are handled by ApplyIconState
References SlotsIconBase.RefreshItemQuantity()
override void ClearRemainSelected()References Class.Cast(), SlotsIconBase.ClearRemainSelected(), string.Format()
Show 24 more
, GetContextualSlotMax(), SlotsIconBase.GetSlotID(), ResetIconState(), Widget.SetColor(), ImageWidget.SetImage(), TextWidget.SetText(), Widget.Show(), Widget.Show(), Widget.Show(), Widget.Show(), Widget.Show(), Widget.Show(), int.ToString(), InventorySlots.INVALID, SlotsIconBase.m_GhostSlot, SlotsIconBase.m_ItemPreview, ConstructionInfoIcon.m_OriginalGhostIconColor, SlotsIconBase.m_PanelWidget, SlotsIconBase.m_QuantityItem, SlotsIconBase.m_QuantityPanel, SlotsIconBase.m_QuantityProgress, SlotsIconBase.m_QuantityStack, QUANTITY_TEXT_COLOR_DARKER_ARGB, and QUANTITY_TEXT_COLOR_LIGHTER_ARGBoverride protected int GetContextualSlotMax()