tweaking + hud

This commit is contained in:
legop3
2026-05-17 13:47:48 -04:00
parent 74e5187bad
commit d67c4dd815
8 changed files with 45 additions and 26 deletions
@@ -0,0 +1,24 @@
import React from 'react';
import { useControlSystem } from '../../../controls/index.js';
function ManualDockAssistOverlay({ mobileHud = false }) {
const {
state: { manualDockAssist },
} = useControlSystem();
const active = Boolean(manualDockAssist?.active);
if (!active) return null;
return (
<div className="pointer-events-none absolute inset-0">
<div
className={`absolute left-2 rounded-lg border border-amber-200/70 bg-amber-900/85 px-2 py-1 font-semibold tracking-wide text-amber-50 shadow-lg ${
mobileHud ? 'top-2 text-[0.65rem]' : 'top-2 text-xs'
}`}
>
DOCKING ASSIST ACTIVE
</div>
</div>
);
}
export default React.memo(ManualDockAssistOverlay);