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
| Field | Type | Description |
graphic | GameObject | Root graphic shown while the list is active. Hidden when the list is empty. |
equipmentLayout | DiscoveredEquipment_Layout | Prefab used to spawn one entry per equipment item. |
container | Transform | Parent that receives the spawned layout entries. |
maxPerLot | int | Maximum number of entries shown per page. |
Methods
| Method | Description |
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
| Field | Type | Description |
icon | Image | Displays the equipment's icon sprite. |
equippedFrame | GameObject | Highlight frame shown when this equipment is currently equipped. |
Methods
| Method | Description |
CreateInstance(Equipment equipment, Transform container, bool equipped = false) → DiscoveredEquipment_Layout | Instantiates 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
| Field | Type | Description |
icon | Image | Displays the stat's icon sprite. |
value | TMP_Text | Shows the numeric stat bonus amount. |
Methods
| Method | Description |
CreateInstance(Equipment.StatValue stat, Transform parent) → StatElement_Layout | Instantiates 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
| Field | Type | Description |
icon | Image | Displays the effect's icon sprite. |
value | TMP_Text | Shows the effect's numeric value and, if the effect has a duration, the turn count. |
Methods
| Method | Description |
CreateInstance(Effect effect, Transform parent) → EffectElement_Layout | Instantiates a copy of this prefab inside parent, sets the icon and formatted value label, and returns the new instance. |