Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
317fba1
feat(hud): menus as a list on the left, W S to choose, hold E to pick
sivert-io Nov 24, 2026
4bcdb68
fix(hud): the menu spec's where=left line
sivert-io Nov 24, 2026
a4a0934
feat(addons): hud_addon=<id> swaps in a test build of the HUD addon
sivert-io Nov 24, 2026
9990f27
fix(match): its menus (help, admin, votes...) ask for the left list too
sivert-io Nov 24, 2026
0081b72
fix(hud): the left list's rows can be picked; it slides in from the l…
sivert-io Nov 24, 2026
7b1da27
test(hud): left list ids, written on one line
sivert-io Nov 24, 2026
bffebc3
feat(hud): every card in the v4 look; the chip above the logo carries…
sivert-io Nov 24, 2026
1bd243e
fix(match): the knife round card is orange, not green
sivert-io Nov 24, 2026
670b02a
feat(hud): closerow=0 drops a list's close row; the knife side pick h…
sivert-io Nov 24, 2026
ac2e715
feat(match): only the captain picks the side after the knife round
sivert-io Nov 24, 2026
3fe020b
feat(match): a warmup chat tip every 60 s: need a pause, an admin or …
sivert-io Nov 24, 2026
388450c
fix(hud): the logo's view box starts at 0,0
sivert-io Nov 24, 2026
3c15d70
fix(hud): the side card (damage report) sits right, above the weapons…
sivert-io Nov 24, 2026
b5b93e5
fix(skins): no weapon re-give right after a team change or a disconnect
sivert-io Nov 24, 2026
840fe20
fix(hud): the menu list slides in (its on class comes 0.15 s after th…
sivert-io Nov 24, 2026
9dae26f
fix(match): with the HUD, going live sends no chat burst; scrim side …
sivert-io Nov 24, 2026
25e895c
fix(hud): the ram replaces icons/ct_logo and icons/t_logo too
sivert-io Nov 24, 2026
4c73a55
fix(hud): our logo draws again; per-team side notice; damage header j…
sivert-io Nov 24, 2026
35e4ed4
feat(hud): go-live card says 'Match is live' and 'Type .menu in chat …
sivert-io Nov 24, 2026
694555a
feat(match): the warmup .menu tip is a star line
sivert-io Nov 24, 2026
2435b8b
feat(hud): shorter .menu line, Hold E chip under the crosshair, Hold …
sivert-io Nov 24, 2026
e26222c
feat(hud): .hud on|off per player (hud.so), menu hint 'W ↑ · S ↓ · Ho…
sivert-io Nov 24, 2026
edee270
feat(hud): wide spaces between the menu hint's parts
sivert-io Nov 24, 2026
460761d
feat(match): team damage counts in the damage card's total
sivert-io Nov 24, 2026
f02c16a
feat(match): menus stay open and open mid-round
sivert-io Nov 24, 2026
c752447
feat(match): damage card shows what you took and your own damage; a f…
sivert-io Nov 24, 2026
daca1a0
fix(hud): HUD off still lets what was shown go away
sivert-io Nov 24, 2026
ead4565
fix(hud): only menus with buttons become the left list
sivert-io Nov 24, 2026
5f035f2
feat(hud): 'Played on' / 'Auto Tournament' either side of the AT logo
sivert-io Nov 24, 2026
3703280
feat(hud): watermark draft C on trial next to G
sivert-io Nov 24, 2026
67a0890
feat(hud): the ready chip slides down and turns green instead of fading
sivert-io Nov 24, 2026
6662ede
feat(hud): watermark G only (C overlapped the health number at 4:3)
sivert-io Nov 24, 2026
4c4c458
feat(hud): the ready chip slides down to just above the AT logo
sivert-io Nov 24, 2026
a49776b
feat(match): players with the HUD off get the centre panel and the ch…
sivert-io Nov 24, 2026
b373ef9
feat(fleet): the platform's HUD choice per player (hud: false)
sivert-io Nov 24, 2026
93f127d
feat(hud): our ram as both teams' logo (mp_teamlogo_1/2 autotournament)
sivert-io Nov 24, 2026
77dbd38
feat(hud): team logo name atram (CS2 cuts it at 7 characters); ready …
sivert-io Nov 24, 2026
e99665e
feat(hud): the ready chip moves 1 s ease-in-out both ways
sivert-io Nov 24, 2026
d992228
Merge remote-tracking branch 'origin/master' into feat/hud-left-menu
sivert-io Nov 24, 2026
adc9dc4
feat(hud): on dev servers every player sees which HUD they have
sivert-io Nov 24, 2026
eff838c
feat(hud): the team logo is the full-colour AT logo
sivert-io Nov 24, 2026
e10082b
feat(hud): write the team logo onto the team entities (warmup has no …
sivert-io Nov 24, 2026
5117a82
feat(hud): team logo without the orange (the ram only, cropped)
sivert-io Nov 24, 2026
308b303
fix(hud): declare WriteTeamLogos before OnTick
sivert-io Nov 24, 2026
e5eea24
feat(hud): team logo, the ram with its holes and an orange outline
sivert-io Nov 24, 2026
8c2aed6
feat(hud): the full-colour ram in CS2's team badge
sivert-io Nov 24, 2026
658856c
feat(hud): the badge and watermark only while the player is alive
sivert-io Nov 24, 2026
21b5be7
feat(hud): badge and watermark follow what CS2 draws; no centre panel…
sivert-io Nov 24, 2026
29bec9f
feat(hud): the badge disc in Valve's mid grey
sivert-io Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions core/include/readyup/hud_iface.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ typedef struct ru_hud_v1 {
* own), on (1) or off (0): hover (CSS :hover, tooltips) needs it. Give it back when done and on
* disconnect. `screen` and `menu` manage at_ui's cursor themselves. 1 = done. */
int (*set_capture)(int hud, int slot, int on);
/* v1.4 (check struct_size): a player who plays without the custom HUD (`.hud off`, or the
* platform's player setting through set_player_off). For them screen / menu / set_text /
* set_class do nothing (menu returns 0): send chat and the centre panel instead. player_off: 1 =
* off. set_player_off: off 1 / on 0, saved by hud.so; 1 = done. */
int (*player_off)(uint64_t steamid64);
int (*set_player_off)(uint64_t steamid64, int off);
/* v1.x: members are appended here. */
} ru_hud_v1;

Expand Down
33 changes: 33 additions & 0 deletions hud/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ foreach ($job in $jobs) {
foreach ($file in Get-ChildItem (Join-Path $here $job.Src) -Filter "*.$($job.Ext)") {
$target = Join-Path $dstDir $file.Name
Copy-Item $file.FullName $target -Force
# The dev build line (ui_dev): this build's commit and time, so a dev server shows which HUD
# each player has.
if ($job.Ext -eq "xml") {
$sha = (& git -C $here rev-parse --short HEAD 2>$null)
if (-not $sha) { $sha = "nogit" }
$stamp = "$sha " + (Get-Date -Format "yyyy-MM-dd HH:mm")
(Get-Content $target -Raw) -replace "__AT_HUD_BUILD__", $stamp | Set-Content $target -NoNewline -Encoding utf8
}
# The compiler works out the addon from the content\csgo_addons\<addon> path.
& $compiler -i $target | Out-Host
$out = Join-Path $game (Join-Path $job.Dst ($file.BaseName + "." + $job.Out))
Expand Down Expand Up @@ -102,6 +110,31 @@ foreach ($file in Get-ChildItem (Join-Path $here "images\icons") -Filter "*.svg"
Write-Output "FAILED $out"
$failed++
}
# The team emblems also exist as panorama\images\icons\ct_logo / t_logo (no _1c); as CT the
# circle still showed CS2's emblem with only the _1c file replaced (2026-11-24). Same picture.
if ($file.BaseName -match '^(ct|t)_logo_1c$') {
$side = $Matches[1]
$plain = Join-Path (Join-Path $content "panorama\images\icons") ($side + "_logo.svg")
Copy-Item $file.FullName $plain -Force
& $compiler -i $plain | Out-Host
$out2 = Join-Path $game ("panorama\images\icons\" + $side + "_logo.vsvg_c")
if (Test-Path $out2) { Write-Output ("OK {0} ({1} bytes)" -f $out2, (Get-Item $out2).Length) } else { Write-Output "FAILED $out2"; $failed++ }
}
# The same ram as a team logo (mp_teamlogo_1/2 atram, set by hud.so; CS2 cuts a logo name at 7 characters): CS2 draws the team
# logo in that circle and loads it by name when needed, so unlike the icons above (cached at
# startup) it shows every time.
if ($file.BaseName -eq "ct_logo_1c") {
# The full-colour AT logo (images/team/atram.svg) when there is one; else the ram above.
$teamSrc = Join-Path $here "images\team\atram.svg"
if (Test-Path $teamSrc) { $file = Get-Item $teamSrc }
$teamDir = Join-Path $content "panorama\images\tournaments\teams"
New-Item -ItemType Directory -Force -Path $teamDir | Out-Null
$team = Join-Path $teamDir "atram.svg"
Copy-Item $file.FullName $team -Force
& $compiler -i $team | Out-Host
$out3 = Join-Path $game "panorama\images\tournaments\teams\atram.vsvg_c"
if (Test-Path $out3) { Write-Output ("OK {0} ({1} bytes)" -f $out3, (Get-Item $out3).Length) } else { Write-Output "FAILED $out3"; $failed++ }
}
}

# Tool caches must not end up in the Workshop upload.
Expand Down
16 changes: 8 additions & 8 deletions hud/images/icons/ct_logo_1c.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions hud/images/icons/t_logo_1c.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
126 changes: 126 additions & 0 deletions hud/images/team/atram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion hud/layout/at_kit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<Label id="at_kind_a" class="at-lyr at-kind cur" text="{s:text}" hittest="false" />
<Label id="at_kind_b" class="at-lyr at-kind old" text="{s:text}" hittest="false" />
</Panel>
<Panel class="at-lyrbox" hittest="false">
<Panel class="at-lyrbox at-textbox" hittest="false">
<Label id="at_text_a" class="at-lyr at-text cur" text="{s:text}" hittest="false" />
<Label id="at_text_b" class="at-lyr at-text old" text="{s:text}" hittest="false" />
</Panel>
Expand Down
304 changes: 304 additions & 0 deletions hud/layout/at_ui.xml

Large diffs are not rendered by default.

23 changes: 14 additions & 9 deletions hud/styles/at_kit.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@

.at-card
{
horizontal-align: left; vertical-align: bottom; margin-left: 24px; margin-bottom: 320px;
horizontal-align: right; vertical-align: bottom; margin-right: 24px; margin-bottom: 320px;
width: fit-children; height: fit-children; min-width: 300px; overflow: clip;
background-color: #140e0cf7; border: 1px solid #322926; border-radius: 12px;
opacity: 0; transform: translateX( -48px );
background-color: #140e0ce6; border: 1px solid #ff6a3d40; border-radius: 12px;
opacity: 0; transform: translateX( 48px );
transition-property: opacity, transform; transition-duration: 0.2s;
transition-timing-function: cubic-bezier( 0.55, 0, 1, 0.45 );
}
Expand All @@ -87,9 +87,10 @@
}
.HUD_BUYMENU_VISIBLE .at-card.on { opacity: 0; }
/* A second layer of the card's background: one layer renders see-through in CS2 (as on #at_ecard). */
.at-cardflow { flow-children: down; width: fit-children; height: fit-children; background-color: #140e0cf7; }
.at-brandrow { width: 100%; padding: 12px 14px 0px 14px; }
.at-carddivider { margin-bottom: 0px; }
.at-cardflow { flow-children: down; width: fit-children; height: fit-children; background-color: #140e0ce6; }
/* v4: no brand row on the side card (the card is right, above the weapons; the menu list is left). */
.at-brandrow { visibility: collapse; width: 100%; padding: 12px 14px 0px 14px; }
.at-carddivider { visibility: collapse; margin-bottom: 0px; }
.at-content { flow-children: down; width: fit-children; height: fit-children; padding: 12px 14px 15px 14px; }
.at-card.chat .at-chat { visibility: visible; margin-left: 20px; }

Expand Down Expand Up @@ -142,15 +143,19 @@
.at-line-body { margin-left: 20px; }

/* Cells hold CS2's own "100 w 5 trafieniach" (pl, the longest with th): 156 px each, the name keeps ~130. */
.at-dmg { flow-children: down; width: 532px; }
.at-dmg { flow-children: down; width: 400px; }
/* Damage card header: "ROUND 1" left, "Dealt 100 damage" right (Sivert, 2026-11-24: justify them). */
.b-dmg .at-head { width: 400px; }
.b-dmg .at-textbox { width: fill-parent-flow( 1.0 ); margin-right: 0px; }
.b-dmg .at-textbox .at-text { horizontal-align: right; }
.at-drow { flow-children: right; width: 100%; height: 28px; margin-bottom: 5px; padding: 0px 9px; border-radius: 7px; background-color: #211815; }
.at-drow.gone { visibility: collapse; }
.at-drow.at-dhead { height: 16px; background-color: #00000000; }
/* Grey unless you hit them: white names are the players you damaged (2026-11-03). */
.at-dname { width: fill-parent-flow( 1.0 ); vertical-align: center; font-size: 13px; color: #938a87; }
/* Given / taken are short sentences ("100 in 3 hits"), left-aligned under their header (2026-11-07). */
.at-dnum { font-family: "Noto Mono"; width: 156px; margin-left: 8px; vertical-align: center; text-align: left; font-size: 13px; color: #938a87; }
.at-dhp { font-family: "Noto Mono"; width: 48px; margin-left: 8px; vertical-align: center; text-align: right; font-size: 13px; font-weight: bold; color: #c4bcb9; }
.at-dnum { font-family: "Noto Mono"; width: 118px; margin-left: 6px; vertical-align: center; text-align: left; font-size: 13px; color: #938a87; }
.at-dhp { font-family: "Noto Mono"; width: 40px; margin-left: 6px; vertical-align: center; text-align: right; font-size: 13px; font-weight: bold; color: #c4bcb9; }
.at-dhead .at-dnum { font-size: 11px; font-weight: bold; letter-spacing: 1.2px; }
.at-dhead .at-dhp { font-size: 11px; letter-spacing: 1.2px; color: #938a87; }
.at-dhead .at-dname { font-family: "Noto Mono"; font-size: 11px; font-weight: bold; letter-spacing: 1.2px; color: #938a87; }
Expand Down
Loading
Loading