mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 02:44:02 +00:00
feat(ui): render the Display panel's detection controls from the store
This commit is contained in:
1 parent
343bdebe98
commit
c99c0e8000
12 files changed
+273
-299
No files matched your search
@@ -65,7 +65,8 @@ export function bindDisplayControls({ elements, actions }) {
|
||||
});
|
||||
removers.push(() => control.destroy());
|
||||
}
|
||||
for (const el of elements.fadeSliders || []) listen(el, 'input', 'setFade');
|
||||
listen(elements.fadeSlider, 'input', 'setFade', integer);
|
||||
listen(elements.outsideOpacitySlider, 'input', 'setOutsideOpacity', integer);
|
||||
return {
|
||||
destroy() {
|
||||
for (const remove of removers.splice(0)) remove();
|
||||
|
||||
Reference in new issue
Block a user