mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-22 16:53:45 +08:00
BigUI WIP: Disablement of more vert scroll
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user