mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
refactor(ui): engine-specific sharpen defaults instead of reading 49 as 80
The baseline and the style presets name ENGINE_SHARPEN_DEFAULT, which resolves to 49 % on Cesium and 80 % on Navara. Share links and explicit calls restore their value unchanged.
This commit is contained in:
1 parent
abf16ae8af
commit
a8a2ad5582
4 files changed
+73
-66
No files matched your search
@@ -182,6 +182,7 @@ test('on Navara, presets set the Sharpen slider to 80 % and the engine draws it'
|
||||
governorRequestRender() {},
|
||||
holdContinuousRender() {},
|
||||
releaseContinuousRender() {},
|
||||
setKeyholeFadeTuning() {},
|
||||
},
|
||||
readHud: () => ({ getVariant: () => 'tactical', setMode() {} }),
|
||||
});
|
||||
@@ -195,5 +196,9 @@ test('on Navara, presets set the Sharpen slider to 80 % and the engine draws it'
|
||||
{ enabled: true },
|
||||
{ amount: 1.7000000000000002 },
|
||||
]);
|
||||
// A share link carries an explicit value: 49 stays 49 on Navara.
|
||||
await owner.restoreShareState({ sharpenIntensity: 49, sharpen: true });
|
||||
assert.equal(elements._sharpenSlider.value, '49');
|
||||
assert.deepEqual(sharpen.at(-1), { amount: 1.08 });
|
||||
owner.destroy();
|
||||
});
|
||||
Reference in new issue
Block a user