Ver Fonte

fix: 环境条在 renderDynamic 中渲染(HUD 优先建立)+ renderStatic 复位

LiuYuYang há 1 semana atrás
pai
commit
87c102eb7e
2 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      js/ui.js
  2. BIN
      tests/shots/desktop-11-env-and-progress.png

+ 2 - 1
js/ui.js

@@ -100,7 +100,7 @@ export class App {
   }
 
   // ───────────── 渲染 ─────────────
-  renderStatic() { this.renderTop(); this.renderLeft(); this.renderRight(); this.renderRiftPanel(); this.renderDynamic(); }
+    renderStatic() { this.envEls = false; this.renderTop(); this.renderLeft(); this.renderRight(); this.renderRiftPanel(); this.renderDynamic(); }
 
   renderDynamic() {
     const s = this.s;
@@ -116,6 +116,7 @@ export class App {
     const lf = s.layer;
 
     this.html('#hud-r', `<b>${fmt(Math.max(s.maxLayerRound || 0, Math.floor(s.layer)), { int: true })}</b> 本轮最深<br>时间乘区 <b>×${st.timeMul.toFixed(2)}</b>`);
+    this.renderEnv(st);
     const magic = $('#magic-badge');
     if (st.narrSig > 0) {
       this.html('#magic-badge', `叙事共鸣 ×${Math.pow(1.3, Math.min(10, st.narrSig)).toFixed(2)}(${st.narrSig} 层)`);

BIN
tests/shots/desktop-11-env-and-progress.png