Skip to content

HUD_WIDGETS beta ​

Variable of @v12-engine/client

ts
HUD_WIDGETS: readonly ['clock', 'status', 'resources', 'allies', 
/** The button that opens the saves, and their window */
'saves', 
/** The button that starts moving the HUD's parts about, and (`layout`) what is over them while they are moved */
'layoutButton', 'layout', 
/** The button on the top bar that opens the debug panel (`debug`), where the player may use the debug tools */
'debugButton', 'leave', 
/** The square buttons of the top right corner, each its own: those shown sit next to each other */
'fullscreen', 'sound', 
/** Quick cast, on or off: there for a game with abilities to cast */
'quickCast', 'legend', 'stats', 'heroes', 'debug', 'messages', 'chat', 'lock', 'minimap', 'idle', 'groups', 'outcome', 'objectives', 
/** The rules' timers the player is shown (`world.timers.show`), counted down at the top of the map */
'timers', 'selection', 'card', 'heroPanel', 'shop', 
/** The bands the HUD stands on: along the bottom, under its console, and along the top */
'console', 
/** The line of dialog said to the player: who says it, their portrait, the words */
'dialog', 
/** A cinematic's choice: the question, its answers and their keys (C3) */
'choice', 
/** Over the view while a cinematic plays: its black bars, and how to skip it */
'cinematic', 
/** The screen blacked out, as far as a cinematic or the game left it (`client.fade`) */
'fade', 
/** The pause menu, which Esc opens (`client.menu`), with its settings and its saves */
'menu', 
/** The button on the top bar that opens it */
'menuButton', 
/** The connection to a server, when it dropped: being tried again, or lost (`client.connection`) */
'connection', 
/** The game paused by the server for everyone: by whom, how long, and Go on (`client.endings.paused()`) */
'paused', 'pingWheel', 
/** The score screen (`client.score`): the game's stats of each player by tab, and a graph of them over time */
'score', 
/** The bar along the top: what is in it is parts of its own (`menuButton`, `title`, `clock`, `resources`...) @beta */
'topBar', 
/** The button on the top bar that shows and hides the objectives (Quests), in a game that has some @beta */
'objectivesButton', 
/** What the game is, at the left of the top bar: its name and a line under it (`client.hud.title()`) @beta */
'title', 
/** The frames a second, and the time to a server and back, on the top bar @beta */
'perf', 
/** The button on the top bar that opens the line to chat in @beta */
'chatButton', 
/** The button on the top bar that opens the settings @beta */
'settingsButton', 
/** The button of the tray under the top bar that opens the list of shortcuts (`legend`) @beta */
'legendButton', 
/** The buttons beside the minimap: a ping, the ground on it or not, the dots by side, the formation @beta */
'minimapButtons', 
/** The message log: what was said on the screen and in the chat so far (`client.ui.log()`) @beta */
'log', 
/** The button on the top bar that opens the log @beta */
'logButton']

The client's parts of the HUD, by name: each can be hidden (GameView.hud.hide, client.hud.hide), and moved, shown only when the game says or drawn by the game in its place by a part of the game's of its id (HudWidgetDef). Everything the HUD draws is one of them or one of the game's (a test says so)