# BAR native HUD reference The visual reference is the installed **test-31992-e7a6cff** game package, commit **e7a6cff3590baff30fdae2e95ee67157a5c6598e**, using the native FlowUI and Grid menu defaults. `reference.json` records the exact Rapid package, source and asset hashes. The three fonts and the FlowUI/Grid/top-bar sources were also compared byte-for-byte with the pinned official GitHub revision. This is a visual reference only. The planner's existing economics catalogue stays at **57a02af75f52bdb47d1cd6c2082a99e4f6c9f631**. Do not update unit statistics, search rules or saved build plans to change the HUD. The visible production-category label is **Build**, from the pinned English `language/en/interface.json` (SHA-256 `0342f98cc31f4a51b4c489ee9324cd9a9a39ff65aab417dc1e446ad2e33c7d50`). Its category identifier remains `production`, with the same V binding. Canvas primitives use factual colours from the pinned `cmdcolors_icexuick.txt`, native selection-box widget and [Recoil 2026.09.03 UnitDrawer](https://github.com/beyond-all-reason/RecoilEngine/blob/2026.09.03/rts/Rendering/Units/UnitDrawer.cpp). Valid/illegal build outlines are green/red; selected footprints are green, build range is unfilled green, and Move/Guard/Repair/Reclaim paths retain their native command colours. The [UnitDef default nano colour](https://github.com/beyond-all-reason/RecoilEngine/blob/2026.09.03/rts/Sim/Units/UnitDef.cpp) is green; reclaim reverses the original Canvas particle flow. These are original 2D primitives, not copied cursor/model assets or terrain-projected 3D shaders. ## Layout Use the map viewport as the HUD coordinate space; website navigation sits outside it. In the formulas below, `W` and `H` are viewport pixels and `S` is `ui_scale` (default 1). `floor` matters because the game aligns widgets to whole pixels. | Element | Native default | | --- | --- | | Minimap | Top-left; preserve the map aspect ratio. Maximum height `0.32 H`, maximum width `0.25 W`; additionally avoid the top-bar area. | | Selected-unit Info | Bottom-left: width `floor(0.2125 × 1.78 × H × S)`; height `floor(0.14 H S)`. | | Order menu | Bottom, immediately right of Info with one widget margin; same width and height as Info. `stickToBottom=true`. | | Grid build menu | Left edge, immediately above Info with one widget margin. Same width as Info, 4 columns × 3 rows, category strip **below** the portraits. `stickToBottom=false`. | | Selected-builder tabs | Grow directly above the Grid menu when multiple builders are selected. | | Resources | Two horizontal cards across the top, starting near `0.30 W`; metal first, energy second, followed by wind/tidal indicators. | Sources: [Info ViewResize](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/luaui/Widgets/gui_info.lua#L786), [Grid ViewResize](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/luaui/Widgets/gui_gridmenu.lua#L1713), [Order menu ViewResize](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/luaui/Widgets/gui_ordermenu.lua#L763), [Minimap](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/luaui/Widgets/gui_minimap.lua#L26). At 1920×1080, scale 1: Info and Order menu are each **408×151 px**; widget margin 4 px; Grid cells are **100×100 px**, its category strip is **44.8 px**, and the complete Grid panel is approximately **408×352 px**. The Order menu starts at x=412 px. The square-map minimap is approximately 345×345 px. These are source-derived reference dimensions, not fixed desktop breakpoints. Small browser viewports need a usable responsive arrangement rather than clipped or overlapping game-sized panels. ## FlowUI skin and typography Native FlowUI uses neutral black/charcoal translucent panels over the map, chamfered corners, thin inset borders and subtle top gloss. It does not use the website's cyan section borders, all-capital page headings or wide letter spacing. | Token | Source value | | --- | --- | | UI opacity | 0.7; clamped opacity at least 0.75 where used | | Widget margin | `floor(0.0045 H S)` | | Panel padding | `floor(0.003 H S)` | | Button padding | `floor(0.002 H S)` | | Chamfer size | `0.9 × widget margin` | | Panel outer layer | RGB `(0.04, 0.04, 0.04)`, default opacity 0.7 | | Inner gradient | Black/grey with a faint white upper layer; source default white alpha `0.1 × opacity`, multiplied by 1.25 for the inner element | | Tile opacity | 0.014; keep any recreation very subtle | | Body text | Poppins Regular | | Commands, build grid, top-bar numbers | Exo 2 Semi Bold | | Monospaced text | Source Code Pro Medium | Fonts have a soft black outline/shadow in game. The font handler loads base size 34 scaled by `(H / 1080) S`, while each widget chooses its actual print size. Do not use 34 px as the size of every label. Sources: [FlowUI defaults](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/luaui/Widgets/gui_flowui.lua#L35), [FlowUI Element](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/luaui/Widgets/gui_flowui.lua#L1028), [Font handler](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/luaui/Widgets/gui_fonthandler.lua#L24). ## Resource bars The total top-bar height is `0.0425 H S` (45.9 px at 1080). The source's `widgetScale` is `(H / height) × 0.0425 × S`, with `height` initially 46. The left edge is `floor(floor(0.30 W) + 5 × widgetScale)`. Resource-card width is `floor((W - leftEdge) / 4.4)`. At 1920×1080, the first starts at x=580 and is 304 px wide. Cards have a 20-degree slanted outer edge in this revision. Metal uses a white fill; energy uses a yellow fill. A thin bar sits under the current stored value. Capacity is right-aligned above its right edge. Red pull and green income are stacked to the left of the bar. The native resource source uses RGB `(210,100,100)` for pull, `(100,210,100)` for income and `(150,150,150)` for capacity. Present values from the planner's simulation, including actual storage, actual demand and actual income. A visual reskin must not invent rates. Source: [Top Bar configuration and drawing](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/luaui/Widgets/gui_top_bar.lua#L45), [bar text and colours](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/luaui/Widgets/gui_top_bar.lua#L901), [resource-card positions](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/luaui/Widgets/gui_top_bar.lua#L1470). ## Build grid and factory queue Portraits fill almost the whole square. Native Grid configuration uses: - Cell padding `floor(0.007 × cellSize)`; icon padding `max(1, floor(0.015 × cellSize))`; icon chamfer `floor(0.025 × cellSize)`. - Category font `0.013 H S`. Left-docked category strip height is `floor(2.3 × categoryFont × S) × 1.4`. - Costs at the lower-right: white metal above yellow energy. Cost font is `round(0.16 × innerCellSize)`. - Hotkey at the upper-right in pale green `#d7ffd7`, 1.1× cost font. - Factory queue count at the upper-left, pale green `#beffbe`, font `0.29 × innerCellSize`, over a dark grey badge. - Selection tint gold `(1,0.85,0.2,0.25)`; click tint green `(0.3,0.8,0.25,0.2)`; unavailable portraits dim to 40% brightness. - A portrait of a builder still under construction is dimmed to 77% brightness. - Active factory construction has a clockwise-revealed portrait, using a dark radial/pie mask with RGB `(0.08,0.08,0.08)` at alpha 0.6 on the unfinished part. The native factory display uses its own unit grid. Keep its queue quantities and construction progress in the corresponding portrait cells; a separate oversized website queue list is not part of the reference HUD. Source: [Grid configuration](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/luaui/Widgets/gui_gridmenu.lua#L77), [portrait states and costs](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/luaui/Widgets/gui_gridmenu.lua#L2212), [construction mask](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/luaui/Widgets/gui_gridmenu.lua#L2800). ## Orders, selection and tooltips The native default Order menu uses **text buttons**, `showIcons=false`, and `colorize=0`. It is not a collection of large cyan action cards. At up to 16 commands, the native menu has 4 columns × 4 rows; it grows the row/column count for larger command lists. Buttons use a charcoal bevel with soft white text; an active command becomes a lighter grey/white button with dark text. Stateful commands use small coloured pips to show their current state. Button hover zoom is 1.035; click zoom is 1.05. The standard button font is Exo 2 Semi Bold. Unit Info uses a square portrait, green name `#cdffcd`, white description/values, grey labels `#c8c8c8`, and restrained yellow highlights `#fdc04c`. The portrait size is approximately 78 px at 1080p, not the whole width of the Info panel. Multiple selected types become compact portrait cells with counts rather than a tall list. Tooltips appear after 0.37 seconds, near the pointer with a 12 px x-offset. The base font is 14 scaled by `(1 + ((H - 850) / 900)) × (0.95 + (S - 1) / 2.5)`; clamp to the viewport. Use the same charcoal FlowUI skin and meaningful title, description and cost content. This revision's structured unit tooltips are optional (`unitTooltips=false` by default); do not mistake an optional widget mode for the default HUD. Sources: [Order defaults](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/luaui/Widgets/gui_ordermenu.lua#L69), [Order cell grid](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/luaui/Widgets/gui_ordermenu.lua#L466), [Order button rendering](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/luaui/Widgets/gui_ordermenu.lua#L1319), [Info colours](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/luaui/Widgets/gui_info.lua#L54), [Tooltip](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/luaui/Widgets/gui_tooltip.lua#L73). ## Assets and screenshot cross-check Only the three unmodified, OFL-1.1 font binaries are bundled here. Preserve `FONT-NOTICES.txt` and `LICENSES/` when redistributing them. `fonts.css` provides optional namespaced font-face declarations. The native command cursors, resource pictures and category pictures are recorded as `LicenseRef-BAR-CLA-1.0`. That licence limits reuse to BAR/BAR-approved projects; external website redistribution permission was not established. They are not included. The faithful default text Order menu requires no command pictures. Continue using the site's separately approved unit portraits and original simple resource glyphs. No models, derived commander animations or screenshots are bundled. Two existing local 3440×1440 full-HUD screenshots (24 and 26 August 2026) were inspected privately. The selected-constructor screenshot corroborates the same left Grid / lower Info / adjacent Order / top-left minimap / top-resource layout, neutral bevels and compact portraits. It is an older, customised user session, not proof of this newer revision's exact settings. Current defaults and dimensions above come from the pinned source. The official [Lightbringer update](https://www.beyondallreason.info/news/lightbringer-update) also documents these GUI components and sharper portrait rendering; its cropped examples are not a substitute for a full-HUD layout reference. Licence sources: [BAR font manifest](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/fonts/LICENSE_MANIFEST.md), [BAR licensing policy](https://github.com/beyond-all-reason/Beyond-All-Reason/blob/e7a6cff3590baff30fdae2e95ee67157a5c6598e/license.md). ## Planning camera controls — 19 November 2026 Control references: [official Grid commands](https://www.beyondallreason.info/commands-2-0-grid) and [Recoil 2026.09.03 SpringController](https://github.com/beyond-all-reason/RecoilEngine/blob/2026.09.03/rts/Game/Camera/SpringController.cpp). The installed `data/uikeys.txt` corroborates Alt `moverotate`, Ctrl `movetilt` and Alt+O `cameraflip`. Grid uses Ctrl+F5/F6 for overhead/Spring camera modes. The engine's rotation state changes both azimuth and pitch during mouse movement; its tilt state changes pitch with the wheel. The planner offers those held-mouse and keyboard controls, plus accessible angle sliders and Reset view. This remains an orthographic planning view with portrait billboards. It does not implement engine FOV, camera collision, smooth transitions or pointer-lock middle-click toggling. Angles never change the economics catalogue, coordinates or saved orders. Independent projection/ray mathematics keeps editable hits on the displayed terrain/water triangles; game camera source is not bundled.