DiscoveredEquipmentList

A paginated display of all equipment the player has discovered. Call ShowType to filter by equipment slot, then use Next and Previous to page through the results.

Inspector Fields

FieldTypeDescription
graphicGameObjectRoot graphic shown while the list is active. Hidden when the list is empty.
equipmentLayoutDiscoveredEquipment_LayoutPrefab used to spawn one entry per equipment item.
containerTransformParent that receives the spawned layout entries.
maxPerLotintMaximum number of entries shown per page.

Methods

MethodDescription
ShowType(Equipment equipment)Filters the discovered equipment list to the same slot type as equipment, resets to the first page, and spawns the initial set of entries.
Next()Advances to the next page if more entries remain.
Previous()Goes back one page if past the first page.

DiscoveredEquipment_Layout

Prefab-based toggle element representing a single piece of discovered equipment in DiscoveredEquipmentList. Use CreateInstance to spawn and configure it.

Inspector Fields

FieldTypeDescription
iconImageDisplays the equipment's icon sprite.
equippedFrameGameObjectHighlight frame shown when this equipment is currently equipped.

Methods

MethodDescription
CreateInstance(Equipment equipment, Transform container, bool equipped = false)DiscoveredEquipment_LayoutInstantiates a copy of this prefab inside container, sets the icon, shows or hides the equipped frame, and returns the new instance.

StatElement_Layout

Prefab-based widget showing a single stat bonus from an equipment piece — icon and numeric value. Spawned by EquipementSlot_TooltipLayout when displaying equipment details.

Inspector Fields

FieldTypeDescription
iconImageDisplays the stat's icon sprite.
valueTMP_TextShows the numeric stat bonus amount.

Methods

MethodDescription
CreateInstance(Equipment.StatValue stat, Transform parent)StatElement_LayoutInstantiates a copy of this prefab inside parent, sets the icon and value label, and returns the new instance.

EffectElement_Layout

Prefab-based widget showing a single Effect granted by an equipment piece — icon, value, and optional duration. Spawned by EquipementSlot_TooltipLayout.

Inspector Fields

FieldTypeDescription
iconImageDisplays the effect's icon sprite.
valueTMP_TextShows the effect's numeric value and, if the effect has a duration, the turn count.

Methods

MethodDescription
CreateInstance(Effect effect, Transform parent)EffectElement_LayoutInstantiates a copy of this prefab inside parent, sets the icon and formatted value label, and returns the new instance.