StaticItemPanel

StaticItemPanel

class

Block the recipe screen shows above the recipes of an item

Fields

NameTypeDescription
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:add_context(item)

Add an item to the context inventory

item StaticItem Item to show

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)
Inherited from Object (1)