mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-20 07:43:48 +08:00
ui
The user interfaces here are built with raylib.
Quick start:
- set
BIG=1to run the comma 3X UI (comma four UI runs by default) - set
SHOW_FPS=1to show the FPS - set
STRICT_MODE=1to kill the app if it drops too much below 60fps - set
SCALE=1.5to scale the entire UI by 1.5x - set
BURN_IN=1to get a burn-in heatmap version of the UI - burn-in prevention shifts the UI by 2 pixels every 3 minutes on device; the shift is blended over 1 second so it is not visible as a jump.
Set
BURN_IN_PREVENTION=0to disable it or tune it withBURN_IN_SHIFT_PIXELS,BURN_IN_SHIFT_INTERVAL, andBURN_IN_SHIFT_TRANSITION_SECONDS. TICI/TIZI shift the completed frame through the offscreen presentation path; MICI uses direct shifting by default. SettingWHITE_LUMINANCE_CAPbelow1.0also enables the offscreen presentation path. - set
MICI_FORCE_RENDER_TEXTURE=1to force the C4 UI through the offscreen presentation path for diagnostics - set
GRID=50to show a 50-pixel alignment grid overlay - set
MAGIC_DEBUG=1to show every dropped frames (only on device) - set
RECORD=1to record the screen, output defaults tooutput.mp4but can be set withRECORD_OUTPUT - https://www.raylib.com/cheatsheet/cheatsheet.html
- https://electronstudio.github.io/raylib-python-cffi/README.html#quickstart
Style guide:
- All graphical elements should subclass
Widget.- Prefer a stateful widget over a function for easy migration from QT
- All internal class variables and functions should be prefixed with
_