feat(net): F3 network overlay - ping graph and where lag comes from (you, opponent, server)
This commit is contained in:
@@ -34,6 +34,17 @@
|
||||
/* fixed design size, scaled to the window by Kit.fit */
|
||||
#app { position: relative; width: 1280px; display: flex; flex-direction: column; }
|
||||
/* HUD lives INSIDE the stage (full-screen game look), above the overlay so menus keep it reachable */
|
||||
/* network overlay (F3) */
|
||||
#netov { position: absolute; left: 8px; bottom: 12px; z-index: 9; width: 316px; padding: 8px; border-radius: 6px;
|
||||
background: rgba(10,12,16,.86); border: 1px solid var(--line); box-shadow: var(--hl); font: 12px/1.35 Consolas, monospace;
|
||||
color: var(--text); pointer-events: none; }
|
||||
#netov .nvh { font-weight: bold; color: var(--accent); margin-bottom: 4px; }
|
||||
#netov canvas { display: block; width: 300px; height: 84px; }
|
||||
#netov .nvleg { display: flex; gap: 8px; flex-wrap: wrap; margin: 3px 0 5px; font-size: 11px; color: var(--dim, #8d95a8); }
|
||||
#netov .nvleg i { display: inline-block; width: 10px; height: 3px; margin-right: 3px; vertical-align: middle; }
|
||||
#netov .nvrows { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; }
|
||||
#netov .nvrows b { text-align: right; font-weight: normal; }
|
||||
#netov .nvv { margin-top: 5px; border-top: 1px solid var(--line); padding-top: 4px; }
|
||||
#hud { position: absolute; left: 0; right: 0; top: 0; z-index: 7; display: flex; gap: 8px; align-items: center;
|
||||
height: 44px; padding: 0 12px; pointer-events: none;
|
||||
background: linear-gradient(rgba(6,8,12,.9) 35%, rgba(6,8,12,0)); }
|
||||
@@ -830,6 +841,8 @@
|
||||
<script src="looks.js"></script>
|
||||
<script src="render3d.js"></script>
|
||||
<script src="netfight.js"></script>
|
||||
<script src="netstats.js"></script>
|
||||
<script src="netoverlay.js"></script>
|
||||
<script src="shop.js"></script>
|
||||
<script src="painter.js"></script>
|
||||
<script src="uicheck.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user