mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 18:34:02 +00:00
feat(ui): render the Display panel's HUD and Sonar controls from the store
This commit is contained in:
1 parent
c99c0e8000
commit
3aa5a3e5e3
11 files changed
+118
-94
No files matched your search
@@ -200,7 +200,11 @@ test('recording restores the original HUD after repeated entry and revokes retai
|
||||
try {
|
||||
let mode = 'auto',
|
||||
variant = 'tactical';
|
||||
const owner = new RecordingControls({ syncShareState() {} });
|
||||
const hudSyncs = [];
|
||||
const owner = new RecordingControls({
|
||||
syncShareState() {},
|
||||
syncHudControls: () => hudSyncs.push(variant),
|
||||
});
|
||||
owner.hud = {
|
||||
getMode: () => mode,
|
||||
getVariant: () => variant,
|
||||
@@ -218,6 +222,11 @@ test('recording restores the original HUD after repeated entry and revokes retai
|
||||
owner.setRecordingMode(true);
|
||||
assert.equal(mode, 'auto');
|
||||
assert.equal(variant, 'tactical');
|
||||
assert.deepEqual(
|
||||
hudSyncs,
|
||||
['minimal', 'minimal', 'tactical'],
|
||||
'each change shows the HUD layout it leaves',
|
||||
);
|
||||
assert.equal(document.body.classList.contains('recording-mode'), false);
|
||||
assert.equal(
|
||||
f.nodes.get('safe-frame-overlay').classList.contains('active'),
|
||||
|
||||
Reference in new issue
Block a user