StaticTip
classEncyclopedia entry shown to the player
Fields
| Name | Type | Description |
|---|---|---|
| label | Loc | Localized title |
| description_parts | Loc[] | Localized body paragraphs |
| image | string | Illustration path relative to the owning mod folder |
| context | AutosizeInventory | Inventory of items shown next to the text |
Functions
StaticTip:add_context(item)
Add an item to the context inventory shown next to the text
| item | StaticItem | Item to show |
StaticTip:clear_context()
Remove every item from the context inventory
Standard members (5)
Generated for every class of this kind by the game's codegen, not written for StaticTip.
| StaticTip.cast(object) | Trying to cast Object into StaticTip |
| StaticTip.get_class() | Return StaticTip class object |
| StaticTip.find(name) | Looks StaticTip up in db, nil when there is none |
| StaticTip.get(name) | Takes StaticTip from db, reports a miss to the log |
| StaticTip.reg(name) | Register a new StaticTip static object |
Inherited from Prototype (2)
- name Object name
- Prototype:is_valid() Returns false once the underlying engine object has been destroyed
Inherited from Object (1)
- Object:get_class() Class of this object