BigUI WIP: Disablement of more vert scroll

This commit is contained in:
firestarsdog
2026-06-28 03:54:02 -04:00
parent 02060a4b67
commit afe15a9a80
3 changed files with 10 additions and 0 deletions
@@ -221,6 +221,9 @@ class AppearanceManagerView(AetherSettingsView):
self._scroll_rect, self._scroll_rect.height
)
if self.vertical_scrolling_disabled:
self._scroll_offset = 0.0
self._draw_scroll_content(self._scroll_rect, self._scroll_rect.width)
def _draw_scroll_content(self, rect: rl.Rectangle, width: float):
@@ -78,6 +78,10 @@ def _sync_parent(params, parent_key, child_keys):
class SteeringManagerView(PanelManagerView):
METRICS = CUSTOM_METRICS
@property
def vertical_scrolling_disabled(self) -> bool:
return True
def __init__(self, controller: "StarPilotLateralLayout"):
super().__init__()
self._controller = controller
@@ -249,6 +249,9 @@ class LongitudinalManagerView(AetherSettingsView):
self._scroll_rect, self._scroll_rect.height
)
if self.vertical_scrolling_disabled:
self._scroll_offset = 0.0
self._draw_scroll_content(self._scroll_rect, self._scroll_rect.width)
def _draw_scroll_content(self, rect: rl.Rectangle, width: float):