Render offroad text centered

This commit is contained in:
Shane Smiskol
2026-03-02 23:24:43 -08:00
parent 3504ccb639
commit 90af6be9b8
@@ -247,7 +247,7 @@ class AugmentedRoadView(CameraView):
# Draw darkened background and text if not onroad
if not ui_state.started:
rl.draw_rectangle(int(self.rect.x), int(self.rect.y), int(self.rect.width), int(self.rect.height), rl.Color(0, 0, 0, 175))
self._offroad_label.render(self._content_rect)
self._offroad_label.render(self._rect)
# publish uiDebug
msg = messaging.new_message('uiDebug')