Control behavior for display panels.
LuaControlBehaviorArray<DisplayPanelMessageDefinition>Array<DisplayPanelMessageDefinition>falseThe full list of configured messages.
booleanunknownfalseIs this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be false. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.
stringunknownfalseThe class name of this object. Available even when valid is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
LuaDisplayPanelControlBehavior.get_message(index: uint32) -> DisplayPanelMessageDefinition
displayPanelControlBehavior.get_message(index)
takes_table: falsetable_optional: falseGet a specific message definition
index: uint32 — Message index.DisplayPanelMessageDefinition — The message definition at the specified index.LuaDisplayPanelControlBehavior.set_message(index: int32, message: DisplayPanelMessageDefinition | nil)
displayPanelControlBehavior.set_message(index, message)
takes_table: falsetable_optional: falseSet the message at the specified index
index: int32 — Message index. Use -1 to append new element.message: DisplayPanelMessageDefinition | nil — The message definition for the specified index. Specify nil to remove the message.