feat(ui): a route written in a message shown on the map (L2 Route, L1 Show route)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-10-26 19:46:28 +01:00
co-authored by Claude Opus 5.5
parent 009bde0db4
commit 81c551425e
8 changed files with 301 additions and 11 deletions
@@ -135,6 +135,8 @@ public:
void routePick(int row);
void routeMapTap(const uint8_t* pub_key, uint8_t type);
void routeMapDone();
void routeShowDone();
bool routeShowing() const { return _route_show; }
void routeMapRefresh();
void routeMapUndo();
void routeMapFrame();
@@ -665,6 +667,7 @@ private:
uint32_t _next_flow_ms = 0; // the map's packet flow repaint
uint8_t _flow_legend_tick = 0; // its legend, every 10th repaint
bool _route_pick = false; // the nodes map taps repeaters into the route
bool _route_show = false; // the nodes map shows a message's route (_core->hop_route)
lv_obj_t* _route_bar = nullptr;
lv_obj_t* _route_lbl = nullptr;