mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-29 18:42:07 +08:00
BigUI WIP: Scissor Borders
This commit is contained in:
@@ -72,6 +72,11 @@ class StarPilotOnroadView(AugmentedRoadView):
|
||||
if not mr._path.projected_points.size:
|
||||
return
|
||||
|
||||
rl.begin_scissor_mode(
|
||||
int(self._content_rect.x), int(self._content_rect.y),
|
||||
int(self._content_rect.width), int(self._content_rect.height),
|
||||
)
|
||||
|
||||
# Path edges (always rendered if track_edge_vertices exist)
|
||||
if mr._track_edge_vertices.size >= 4:
|
||||
render_path_edges(mr)
|
||||
@@ -89,6 +94,8 @@ class StarPilotOnroadView(AugmentedRoadView):
|
||||
from openpilot.selfdrive.ui.onroad.starpilot.stopping_point import render_stopping_point
|
||||
render_stopping_point(mr, self._font_bold)
|
||||
|
||||
rl.end_scissor_mode()
|
||||
|
||||
def _position_personality_button(self):
|
||||
dm = self.driver_state_renderer
|
||||
toggle_on = self._params.get_bool("OnroadDistanceButton")
|
||||
|
||||
Reference in New Issue
Block a user