StaticTip

StaticTip

class

Encyclopedia entry shown to the player

Fields

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