mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
BigUI WIP: Chips
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user