StaticItemPanel
classBlock the recipe screen shows above the recipes of an item
Fields
| Name | Type | Description |
|---|---|---|
| items | StaticItem[] | Items this panel is shown for |
| category | string | Item category this panel is shown for |
| order | integer | Sort order among the panels of one item |
| widget | string | Panel widget class path; empty means the built-in text panel |
| label | Loc | Localized panel title |
| description_parts | Loc[] | Localized body paragraphs |
| context | AutosizeInventory | Inventory of items shown under the text |
Functions
StaticItemPanel: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 StaticItemPanel.
| StaticItemPanel.cast(object) | Trying to cast Object into StaticItemPanel |
| StaticItemPanel.get_class() | Return StaticItemPanel class object |
| StaticItemPanel.find(name) | Looks StaticItemPanel up in db, nil when there is none |
| StaticItemPanel.get(name) | Takes StaticItemPanel from db, reports a miss to the log |
| StaticItemPanel.reg(name) | Register a new StaticItemPanel 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