Scripting / UI
EquipmentNotification
Persistent notification panel that queues equipment announcements. Displays details like stats and effects when new Equipment is received. The queue survives scene loads because it is stored in a static field.
Static Members
| Member | Description |
|---|---|
AddEquipment(Equipment equipment) | Adds the equipment to the notification queue. If the panel is idle the notification appears immediately; otherwise it waits until the current one is dismissed. |
Instance Methods
| Method | Description |
|---|---|
ActivateGlobe() | Shows the globe indicator and displays the next equipment in the queue. |
DeactivateGlobe() | Hides the globe indicator and marks the panel as ready for the next entry in the queue. |
Close() | Plays the hide animation to dismiss the current notification. Wire this to a close button's OnClick in the Inspector. |
Inspector Fields
| Field | Type | Description |
|---|---|---|
NotificationGlobe | GameObject | Globe icon activated while a notification is pending or on screen. |
equipmentIcon | Image | Displays the equipment's sprite. |
equipmentNameText | TMP_Text | Displays the equipment's displayName. |
equimentDescText | TMP_Text | Displays the equipment's description. |
statElement | StatElement_Layout | Prefab used to spawn one row per stat bonus. |
statContainer | Transform | Parent that receives the spawned stat rows. |
effectElement | EffectElement_Layout | Prefab used to spawn one row per effect. |
effectContainer | Transform | Parent that receives the spawned effect rows. |
See also: NotificationLayout, Equipment