Skip to content

@v12-engine/client/hud ​

Interfaces ​

NameWhat
BarProps betaWhat a Bar is given
BuffChip betaA buff as a row shows it: what the HUD's model gives (BuffInfo), or a game's own
Chip betaA chip to pick: the subgroups of a selection, by type
DrawnWidget betaA part as it is drawn now: the client's changed by the game's of its id, or the game's own
GeneratorFormState betaWhat the form is now: its options, the map made of them (none until the first is), and whether another is being made
HudWidgetsAccess betaThe parts of the HUD as its places draw them (WidgetsAt), and whether one is drawn now
RingProps betaWhat a Ring is given
SlotProps betaWhat a Slot is given
StatRow betaA line of a stat grid: what the HUD's model gives (StatLine), or a game's own
UnitTileProps betaWhat a UnitTile is given
WidgetProps betaWhat every part is given: the client, and nothing else

Functions ​

NameWhat
Allies betaThe player's allies, giving them what the player has (see the engine's give) and sharing with them (shareWith): a button that opens a list of them, with whether each is given control of the player's units and their sight, and an amount to send of each resource. Only when there are allies
Badge betaA round badge: a level, points to spend, a count (see badge)
Bar betaA bar that fills, on Ark's Progress: health, mana, experience, how far along. Its colour is a tone of the theme (or health's own, by what is left), and it can carry its numbers, a shield after the value, and marks along it
BuffRow betaBuffs in a row: a little tile each, red for what harms, green for what helps, the metal's for what lasts for ever (an aura), its picture or first letter, the seconds left in its corner, its name and words as its tooltip
Callings betaA hero's callings (HeroDef.callings): each its picture in its colour, with as many pips as its strength (1 to 3), strongest first; its name and what it plays as in its tooltip. With named, its name beside it too: a tooltip's line. Nothing for a hero with none
Chat betaThe lines of chat, for a while each, and the line to type in once Enter opens it: Enter sends it, Esc closes it, Tab switches between the side and everyone. What is typed and not sent is kept when the line loses the focus (a click on the map), there again as it opens; Esc throws it away (RV29)
Chips betaChips to pick one of, on Ark's ToggleGroup (the keyboard moves between them): the subgroups of what is selected. The one picked has the gold face; picking is the caller's (onPick), and so is what is picked (value)
Choice betaThe choice a cinematic asks (cinematic plan C3): its question and its answers, each with its key (1, 2, 3...), a bar of the time left where it waits only so long. A click on an answer picks it, as its key does (the cinematic hears the keys). Four ways: the look declared (GameView.cinematics.choice: where, how wide), a menu of the game's own as a component or an element (ChoiceLook.component, mount), or the whole part drawn by the game (hud.widgets: [{ id: 'choice', component }])
clientWidgets betaThe HUD's parts as the client draws them where the game changes nothing: each a def as a game's is, at a place and an order (tens, so that a game's goes between), with what the client draws it with. What they may do with where the game is played (leave it, start it over) is the client's: client.menu.scene()
Clock betaThe hour, in a crest hanging from the middle of the top (.vg-crest): the sun or the moon, the time, and what comes next ("DAY · DUSK IN 1:12"), a gem of the skin's under it. Nothing in a game without days
CommandCard betaThe command card: the buttons of the selection's commands, abilities and items, with their tooltips and costs, as the HUD's model gives them
ConnectionBanner betaThe connection to a server, when it is not there (client.connection): "Connection lost, trying again" while it is tried again, then, once it is lost, why, with Try again and Leave. Nothing while connected
Corners betaThe ornaments on the four corners of a frame of the HUD, in the skin's shape and metal (--vg-ornament): put in a frame's element, which is what they stand out of. None where the skin has none (ornament: 'none')
DialogWidget betaThe dialog box: the line said to the player now (the head of client.dialog), drawn as the dialog's look says (GameView.cinematics.dialog: where, a compact transmission beside the console when left out; how wide, scaled as the HUD is; the portrait and the name, subtitles), its words revealed by a typewriter as the line's pace says. Four ways: the look declared, changed in code (client.setDialogLook), a box of the game's own as a component or an element (DialogLook.component, mount; one line's own: DialogLine.ui), or the whole part drawn by the game (hud.widgets: [{ id: 'dialog', component }]). A click, or Enter, shows the rest of the words, then moves on
Frame betaA frame of the HUD (see frame): panel, tile, tab or bar, as an element of the caller's kind (as). A panel has its ornaments on its corners (Corners)
FrameStats betaThe window of the frame's times and the renderer (📊), whose switch starts the game over
Fullscreen betaFull screen for the game's element (client.root)
GameMount betaA game on the page, as its run is (runGame): its element, the two canvases the client draws on, the screen while it loads, then its HUD and what floats over it, or the screen that says why it could not be loaded or stopped. Everything of the game is inside its element, and goes with it. How the game is loaded, started and ended is the run's: this draws it
GeneratorForm betaThe controls of a generator of maps (world plan G2, G3): the size, the players, the symmetry, the seed (🎲 for another) and the generator's own parameters as sliders, switches and choices; and a picture of the map it makes, made again as the controls settle, with the seed it came out of, how long it took and what is wrong with it. What the editor's New map from a generator and the start screen's random map are made of. Tells what it is as it changes (onState)
Glyph betaA picture by name, drawn in the colour of the text: nothing (or fallback) for a name with none
glyphOf betaThe picture under a name, or none
Groups betaThe control groups, one slot for every number, above the minimap. A click selects a group, a right click forgets it, and a group dragged onto another slot takes that number: the group that was there takes the one it came from. Nothing is shown until there is a group
healthTone betaThe tone of health by how much is left of it (0..1): green, then yellow, then red
Heroes betaThe player's heroes down the left (the part heroes): a card each with its key, its face, its level, and its health and mana under it. A click selects one; one that fell is grey with the time until it comes back; one that levels glows a moment (the HUD's heroLevel event). Many heroes make the cards smaller, then two columns
HeroPanel betaThe panel of a hero selected alone, while there is one (client.ui.slot('hero'))
Hud betaThe whole HUD of the client's, as the game's element draws it
HudWidgets betaGives the HUD's places the parts as they are drawn: the client's (clientWidgets) changed by the game's. What the client's HUD puts around its parts; a game's own HUD made of the client's bars puts one around them too
IdleWorkers betaThe workers with nothing to do (the part idle): a click for the next one, with Shift for all of them
isHidden betaWhether a part is not drawn: the game left it out, hid it, or the HUD is hidden (a cinematic) but for the parts it keeps
KeyButton betaA button with its key after its words, as the top bar's are: MENU F10. The key is the player's own for its action, so it is given, not known; none is shown when it has none
KeysList betaThe keys, for the player to put where they like (client.keys): every action under its heading with the keys it is on, each to take off, another to add by pressing it, and the way back to the keys it comes with. Two actions on one key are said. A key is the place it has on the keyboard, shown as the player's keyboard has it. Any set of actions is listed so: the map editor's are (editor.keys). when gives the words for when an action counts (ActionDef.when), where they are not the game's own
Legend betaThe button for the list of what the keys and the mouse do, and the list itself: the actions of any use in this game (actionApplies), with the keys they are on. right puts the button at the top right corner, alone
MessageLog betaThe message log (the part log): what was said on the screen and in the chat so far, the newest at the bottom, with the time of the game it came at. Opened by the Log button of the top bar, its key (log), or client.ui.setLogOpen
Minimap betaThe minimap, as big as the game says (MinimapLook.size, client.hud.setMinimap), drawn by the client on its canvas: in a frame of the console's (--vg-hud-minimap-frame) with the column of its buttons (minimapButtons) at its right
MinimapButtons betaThe buttons beside the minimap (the part minimapButtons): a column at its right, in its frame, from its top to its foot. Down from its top: a ping where the view looks, the ground on the minimap or none, the dots by side (yours, your allies', your enemies') or by player, and the formation the player's orders take, where the game has formations
Mute betaThe sound: all of it on or off, and a mixer with a volume for each kind of sound
Objectives betaWhat the player is set to do, in a mission: the ones the mission needs first, each with how far along it is. Over the row of control groups (its top 84 px above the minimap's width), not over it (RV29). What it shows is the quest log (QuestLog)
onHudEvent betaListens to a HUD event (client.hud.on) for as long as the component that asked lives: stopped with it. Outside a component, it gives back what stops it, as client.hud.on does
OutcomeWidget betaThe end of the game: Victory or Defeat, and its buttons (Play again starts the place it is played in over)
PausedBanner betaThe game paused by the server, for everyone (client.endings.paused()): who paused it, how long until it goes on by itself, and a button to let it go on, for a pause a player asked for. Nothing while it goes on
PauseMenuScreen betaThe client's pause menu (client.menu): its lines (Resume, Settings, Keys, Save and load, Score, Pause the game, Give up, the game's own, Restart, Leave), and the screens they open. In a dialog over the game, in its element; Esc goes back and then closes it, as the client's keys have it. It moves (UX1): the dialog comes in and goes, its lines one after another, a screen of it slides over the one before (ScreenTransition); the game's sounds as it opens and closes and its lines are pressed (GameView.hud.sounds)
Perf betaThe frames a second, and the time to the simulation and back where it runs elsewhere
Picture betaWhat stands for a thing: its picture where it has one (an address), else its glyph by name, else the first letter of its name: everything the HUD shows something by goes through it
QuestLog betaThe quest log as the HUD draws it (Objectives), of any objectives: the ones the mission needs, then the optional ones, each opened at a click for more about it. Where else the same log is drawn, as the editor's Objectives panel previews a map's (campaign plan EQ3)
QuickCast betaWhether a key casts at the pointer at once, or waits for a click to say where: for a game with abilities to cast
registerGlyph betaPuts a picture of the game's own under a name, for every HUD of the page: its own, or in the place of the client's
Resources betaWhat the player has, in the top bar: their resources, supply and upkeep. Every player's for who only watches
Ring betaA ring that fills around something, on Ark's Progress: the experience around a hero's portrait. A disc of the skin's metal, black inside, the arc of what is filled on the black, and in it what the caller puts (a face, rimmed in black); a badge sits on its foot
Saves betaThe saves' button and window, where the game can be saved (client.saves): nothing where it cannot
Score betaThe score screen (the HUD's part score): a dialog over the game with the score's tabs, while client.score.shown(). Opened from the end of the game, the pause menu or in code (client.score.show())
ScoreBoard betaThe score as tabs: a table of each category's stats by player (a team's added up under its players where it has more than one), and the graph of a stat over time. What the score screen and the pause menu's Score show
ScoreGraph betaA stat over time, a line for each player told of in their colour, the stat picked above it; a line across where the pointer is, with every player's number there
ScoreTable betaThe stats of a category, by player: a row each, a team's total under its players
ScoreWindow betaThe debug panel's score window (section score): every stat, hidden ones too, of every player counted, live. Read from the world where it runs in this page (everyone's, whoever the rules tell), else what this screen is told
SelectionPanel betaWhat is selected (the part selection), when it is not a hero alone: several in the group panel (how many, a chip for each type that picks the one the card is about, and a tile for each), one alone in its sheet
SettingsList betaThe settings, each with the kit's field for its kind, under the heading of its section: a game's while it runs (client), or kept with no game running (settings, a StoredSettings for a screen before the game)
ShopWindow betaThe shop's window, while one is open (client.ui.slot('shop'))
Slot betaA key of the HUD: an ability, an item, a command of the card. A tile of its own colour edged in the skin's metal (.vg-tile), its picture (or drawn one, or name), its key in its top left, a number in its bottom right, its cooldown darkening it from the bottom with the seconds over it, how far it is learned in pips under it, and the look of each state. Everything it does is the caller's (onPress, onAlt, onLearn)
SquareButton betaA square plate with a picture: the top bar's right end, the minimap's column. glyph names its drawn picture; size md 30 pixels, sm 27, lg 33 (the minimap's)
StatGrid betaStats in a grid, two to a row by default: the short name, muted, and the number in its tone, side by side; or stacked, the name in full in small capitals over its number (a unit's sheet). A hero's sheet, a unit's, or any numbers of a game's
Status betaWhat the game itself puts on the HUD: its lines and its buttons, see GameView.hud.status and GameView.hud.actions
Title betaWhat the game is, at the left of the bar: its name in the display face, and a line under it (ui.title)
toneColor betaThe colour of a tone, as CSS: a theme variable
TopBar betaThe bar along the top: the menu, the title, the clock, what the player has, the buttons (topBar). Its three places (top-bar-left, top-bar-center, top-bar-right) have the client's parts and the game's, as the HUD has them
trianglesOf betaThe triangles a map's doodads come to at full, from what each model is (triangles, the editor's: a model it has drawn), and how many doodads are of a model it does not know yet: what the generator's density costs to draw
UnitTile betaA unit of a group: its picture on a tile of its colour, its name, its health as a bar and in numbers (yellow, then red, as it runs low), a hero's level on its corner; rimmed in the lit metal, glowing, for one of the subgroup the card is about
useHud betaThe HUD's model for a Solid component, read where it is used (client.ui's signals) and what is worked out of it: what the bottom is about (focus), the subgroup the card is about, and the moves a HUD makes (pickSubgroup, select). The client's own parts are made with it. Without Solid: client.ui.watch, client.ui.snapshot() and client.hud.on
useHudWidgets betaThe parts of the HUD as the places around draw them: those of HudWidgets, or the client's own with the game's
WidgetFrame betaA part of the HUD's: as the client draws it (children), left out (GameView.hud.hide, client.hud.hide), or what the game draws in its place (the last part of the game's of its id with a component or a mount: GameView.hud.widgets, client.hud.widgets): a component, given the client's part to wrap, or an element over the view, which lets clicks through where it draws nothing. Each in a section the player moves and scales (client.layout), but where section says otherwise
WidgetsAt betaThe parts at a place of the HUD, by their order: each the client's own (drawn as the game changed it) or the game's. only draws the one of that id alone

Values ​

NameWhat
badge betaA round badge on the corner of something: a level in a black coin rimmed in the metal, points to spend, a count
frame betaA frame of the HUD, cast in the skin's metal (.vg-frame, the theme's metal and texture): panel the big ones (what is selected, the card, the minimap), with its ornaments on its corners where it is drawn with Corners; tile a small face with a picture (.vg-tile, its colour --vg-tint); tab a crest hanging from the top (the clock); bar a plaque along an edge (the top bar)
keyCap betaThe key something is on, in its corner: Q, F1, 3

Types ​

NameWhat
BarSize betaHow tall a bar is: xs 4 px under a portrait, sm 6 px, md 12 px with its numbers on it, lg 17 px
GlyphComponent betaA picture drawn in the colour of the text: what registerGlyph takes, the way lucide's icons are
HudFocus betaWhat the bottom of the HUD is about now: a hero of the player's alone (its panel), one unit or building alone (its sheet), several (the group panel), or nothing
HudModelAccess betaWhat useHud gives
HudTone betaWhat a piece is coloured by: a meaning, which is a colour of the theme
SlotSize betaHow big a slot is: lg 47 px (an ability), md 52 px (a command), sm 38 px (an item, a spell), xs 26 px (a summon, a buff)