t2-mapper/src/components/PlayerHUD.module.css

235 lines
3.6 KiB
CSS
Raw Normal View History

2026-02-28 17:58:09 -08:00
.PlayerHUD {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1;
pointer-events: none;
}
2026-03-04 12:15:24 -08:00
.TopRight {
2026-02-28 17:58:09 -08:00
position: absolute;
top: 10px;
right: 10px;
2026-03-04 12:15:24 -08:00
display: flex;
align-items: flex-start;
gap: 6px;
2026-02-28 17:58:09 -08:00
}
2026-03-04 12:15:24 -08:00
.Compass {
position: relative;
width: 64px;
height: 64px;
flex-shrink: 0;
2026-02-28 17:58:09 -08:00
}
2026-03-04 12:15:24 -08:00
.CompassRing {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
image-rendering: auto;
2026-02-28 17:58:09 -08:00
}
2026-03-04 12:15:24 -08:00
.CompassNSEW {
2026-02-28 17:58:09 -08:00
position: absolute;
top: 0;
left: 0;
2026-03-04 12:15:24 -08:00
width: 100%;
2026-02-28 17:58:09 -08:00
height: 100%;
2026-03-04 12:15:24 -08:00
image-rendering: pixelated;
2026-02-28 17:58:09 -08:00
}
2026-03-14 17:12:37 -07:00
.CompassClock {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 10px;
font-weight: 600;
font-variant-numeric: tabular-nums;
color: rgba(200, 240, 230, 0.9);
text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
pointer-events: none;
white-space: nowrap;
}
2026-03-04 12:15:24 -08:00
.Bars {
display: flex;
flex-direction: column;
gap: 3px;
padding-top: 10px;
}
.BarTrack {
width: 120px;
height: 10px;
background: rgba(0, 0, 0, 0.5);
border: 1px solid rgba(255, 255, 255, 0.15);
overflow: hidden;
}
.BarFillHealth {
height: 100%;
2026-02-28 17:58:09 -08:00
background: #2ecc40;
2026-03-04 12:15:24 -08:00
transition: width 0.15s ease-out;
2026-02-28 17:58:09 -08:00
}
2026-03-04 12:15:24 -08:00
.BarFillEnergy {
height: 100%;
2026-02-28 17:58:09 -08:00
background: #0af;
2026-03-04 12:15:24 -08:00
transition: width 0.15s ease-out;
}
/* ── Weapon HUD (right side vertical list) ── */
.WeaponHUD {
position: absolute;
right: 6px;
2026-03-04 12:15:24 -08:00
top: 50%;
transform: translateY(-50%);
display: flex;
flex-direction: column;
gap: 2px;
}
.WeaponSeparator {
height: 6px;
}
/* ── Team Scores (bottom-left) ── */
.TeamScores {
position: absolute;
bottom: 6px;
left: 6px;
2026-03-04 12:15:24 -08:00
font-size: 12px;
border: 1px solid rgba(128, 255, 200, 0.15);
2026-03-14 17:12:37 -07:00
border-collapse: collapse;
}
.ObserverCount {
position: absolute;
bottom: calc(100%);
display: block;
padding: 4px 6px;
font-size: 10px;
color: rgb(193, 228, 216);
text-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
2026-03-04 12:15:24 -08:00
}
.TeamRow {
flex: 1 0 auto;
2026-03-04 12:15:24 -08:00
background: rgba(0, 50, 60, 0.65);
}
.TeamRow + .TeamRow {
border-top: 1px solid rgba(128, 255, 200, 0.15);
}
.TeamName {
min-width: 6em;
font-size: 12px;
font-weight: 500;
2026-03-14 17:12:37 -07:00
padding: 5px 6px;
}
2026-03-04 12:15:24 -08:00
.TeamNameFriendly {
composes: TeamName;
color: #2de46a;
2026-03-04 12:15:24 -08:00
}
.TeamNameEnemy {
composes: TeamName;
color: rgb(121, 203, 212);
2026-03-04 12:15:24 -08:00
}
.TeamScore {
color: #fff;
font-weight: 500;
2026-03-04 12:15:24 -08:00
text-align: right;
2026-03-14 17:12:37 -07:00
padding: 0 10px;
border-left: 1px solid rgba(128, 255, 200, 0.15);
2026-03-04 12:15:24 -08:00
}
.TeamCount {
2026-03-14 17:12:37 -07:00
color: rgb(125, 155, 150);
font-size: 11px;
padding: 0 6px;
2026-03-04 12:15:24 -08:00
}
/* ── Pack + Inventory HUD (bottom-right) ── */
.PackInventoryHUD {
position: absolute;
bottom: 6px;
right: 6px;
2026-03-04 12:15:24 -08:00
display: flex;
align-items: center;
gap: 4px;
}
.PackInvItem {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: rgba(0, 50, 60, 0.65);
border: 1px solid rgba(128, 255, 200, 0.15);
padding: 4px;
gap: 1px;
}
.PackInvItemActive {
border-color: rgba(128, 255, 200, 0.5);
box-shadow: 0 0 6px rgba(128, 255, 200, 0.3);
}
.PackInvItemDim {
opacity: 0.5;
}
.PackInvIcon {
display: block;
image-rendering: pixelated;
}
.PackInvCount {
font-size: 11px;
color: #bfe;
min-width: 12px;
text-align: center;
}
.PackInvInfinity {
display: block;
image-rendering: pixelated;
opacity: 0.8;
}
/* ── Reticle (center) ── */
.Reticle {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.ReticleImage {
width: 64px;
height: 64px;
opacity: 0.85;
image-rendering: pixelated;
}
.ReticleDot {
width: 4px;
height: 4px;
border-radius: 50%;
background: rgba(46, 204, 64, 0.7);
box-shadow: 0 0 4px rgba(46, 204, 64, 0.5);
2026-02-28 17:58:09 -08:00
}