diff --git a/star-raid/css/style.css b/star-raid/css/style.css index 7b87768..339fca7 100644 --- a/star-raid/css/style.css +++ b/star-raid/css/style.css @@ -128,7 +128,10 @@ h1.logo{font-size:clamp(20px,5.4vw,44px);color:#fff;letter-spacing:4px;line-heig .auth-f .btn{width:100%;min-width:0;margin-top:2px} /* ---------- 飞行员大厅 ---------- */ #o-home{background:rgba(4,7,16,.42);justify-content:flex-start;gap:8px;overflow-y:auto} -#o-home .lb{width:min(94%,430px);flex:1;min-height:0;display:flex;flex-direction:column;background:var(--panel);border:3px solid var(--line);padding:10px 10px 8px;margin-bottom:2%} +#o-home .lb{width:min(94%,430px);flex:1;min-height:0;display:flex;flex-direction:column;background:rgba(11,18,38,.55);border:3px solid var(--line);padding:10px 10px 8px} +#o-home .btn{background:rgba(16,26,51,.55)} +#o-home .btn.primary{background:rgba(65,230,255,.68)} +#o-home .lb-tabs button{background:rgba(16,26,51,.5)} .lb-tabs{display:flex;gap:6px;justify-content:center;margin:6px 0 8px} .lb-tabs button{font:inherit;font-size:clamp(7px,1.3vw,9px);background:var(--panel2);color:var(--dim); border:2px solid var(--line);padding:6px 10px;cursor:pointer;letter-spacing:1px} diff --git a/star-raid/index.html b/star-raid/index.html index 3ad634d..5113880 100644 --- a/star-raid/index.html +++ b/star-raid/index.html @@ -45,10 +45,6 @@
— 飞行员大厅 —
 
-
- - -
— 全服排行榜 TOP 100 —
@@ -59,6 +55,10 @@
#飞行员击坠图鉴无尽最高
+
+ + +
diff --git a/star-raid/js/ui.js b/star-raid/js/ui.js index bd58576..f5cec3e 100644 --- a/star-raid/js/ui.js +++ b/star-raid/js/ui.js @@ -19,9 +19,16 @@ $("b-back5").onclick=exitDemoSim; $("b-start").onclick=()=>startGame(); if("ontouchstart" in window){const pb=$("tb-pause");pb.style.display="block";pb.onclick=()=>togglePause();} $("b-resume").onclick=()=>togglePause(); -$("b-restart").onclick=()=>{show("");if(G&&G.mode==="rush")startRush(G.rushIdx);else startGame();}; // Boss挑战重开仍在挑战模式 +$("b-restart").onclick=()=>{show("");restartSameRun();}; $("b-quit").onclick=()=>{bank();G=null;MUS.stop();UI="title";bestLine();show("o-title");}; -$("b-again").onclick=()=>startGame(); +/* 再来一局:按刚结束那一局自己的 mode/ship/diff 重开(修复 SETUP 漂移导致进错模式,如 rush/闯关死后进了无尽) */ +function restartSameRun(){ + if(!G){startGame();return;} + if(G.mode==="rush"){startRush(G.rushIdx);return;} + SETUP.mode=G.mode;SETUP.ship=G.ship;SETUP.diff=G.diff; + startGame(); +} +$("b-again").onclick=()=>restartSameRun(); $("b-home").onclick=()=>{G=null;UI="title";bestLine();show("o-title");}; $("mode-pick").addEventListener("click",e=>{ const c=e.target.closest(".pcard");if(!c)return;