Skip to content

menu_util

Source: base/tealdef/gui/menu/menu_util.d.tl

Notes

Small main-menu recipes: the user profile badge and the animated game-edition logo.

record global base/tealdef/gui/menu/menu_util.d.tl:3

global record MenuUtil

Load: local menu_util = ug_require "/gui/menu/menu_util.tl"

Notes

Util table of menu_util.tl.

Fields

Name Type Description
UserProfile Recipe0 Recipe without parameters that shows a profile icon and the player's user name (app.getUserProfile():getUserName()). used 2× in the base game
EditionLogo Recipe<EditionLogoParams> Recipe of the animated game logo (shader quad with a shine effect that repeats every 37 seconds); shows the Deluxe logo when gameEditionText.hasDeluxeDLC is true. used 2× in the base game

record base/tealdef/gui/menu/menu_util.d.tl:6

record EditionLogoParams

Notes

Parameters of MenuUtil.EditionLogo.

Used in the base game: 1 time in 1 file

base/content/gui/gui/menu/menu_util.tl:33

menu_util.EditionLogo = react.RegisterRecipe("EditionLogo", function(params : MenuUtil.EditionLogoParams) : TreeNodeId

Fields

Name Type Description
gameEditionText GameEditionTextParam Installed edition packs; only hasDeluxeDLC is used.