Skip to content

main_mod_button_area

Source: base/tealdef/gui/main/main_mod_button_area.d.tl

Notes

Horizontal button bar for mods in the game UI. Mods add buttons through the MainModButtonAreaExtension extension point; when at least one plugin exists, the radial menu gets a "Mods" entry that focuses the bar.

MainModButtonAreaParams

record global base/tealdef/gui/main/main_mod_button_area.d.tl:3

global record MainModButtonAreaParams

Notes

Parameters of the MainModButtonArea recipe (none).

MainModButtonArea

record global base/tealdef/gui/main/main_mod_button_area.d.tl:6

global record MainModButtonArea

Load: local main_mod_button_area = ug_require "/gui/main/main_mod_button_area.tl"

Notes

Mod button bar of the game UI and its extension point.

Fields

Name Type Description
MainModButtonAreaExtension ExtensionPoint0 Extension point for mod buttons; register a recipe with react.RegisterPluginRecipe(main_mod_button_area.MainModButtonAreaExtension, name, fn). used 1× in the base game
MainModButtonArea Recipe<MainModButtonAreaParams> Recipe that lays out all plugins of MainModButtonAreaExtension in a horizontal scroll area; it becomes focusable on the focusMainModButtonArea event and leaves focus on IA_MENU_BACK. used 2× in the base game