BigUI WIP: Chips

This commit is contained in:
firestarsdog
2026-05-11 01:16:18 -04:00
parent 5c412cea96
commit 98480a3018
2 changed files with 5 additions and 0 deletions
@@ -1253,6 +1253,7 @@ class AetherAdjustorRow(Widget):
self._style = style
self._color = color or style.accent
self._presets = presets or []
self._preset_applied = False
self._font_title = gui_app.font(FontWeight.MEDIUM)
self._font_subtitle = gui_app.font(FontWeight.NORMAL)
self._font_value = gui_app.font(FontWeight.SEMI_BOLD)
@@ -1351,6 +1352,7 @@ class AetherAdjustorRow(Widget):
self._scrubber.set_value(preset_value)
self._scrubber._on_change(self._scrubber.current_val)
self._scrubber._commit_if_needed()
self._preset_applied = True
return
return
@@ -155,6 +155,9 @@ class SoundsManagerView(Widget):
is_interacting = adjustor.is_interacting
if self._was_interacting.get(key, False) and not is_interacting:
self._controller._test_sound(key)
if adjustor._preset_applied:
adjustor._preset_applied = False
self._controller._test_sound(key)
self._was_interacting[key] = is_interacting
def _draw_header(self, rect: rl.Rectangle):