From 58f9f7edaf627a79cfbd2bd231d04dd4dfcb28fd Mon Sep 17 00:00:00 2001 From: Johanness Date: Sun, 24 May 2026 21:23:35 +0300 Subject: [PATCH] Use MXL flow label in tile UI --- MxlSdkFeed.cpp | 6 +++--- main.cpp | 13 ++++++++++++- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/MxlSdkFeed.cpp b/MxlSdkFeed.cpp index 0d1b5c4..63cc8b4 100644 --- a/MxlSdkFeed.cpp +++ b/MxlSdkFeed.cpp @@ -160,10 +160,10 @@ namespace { const char* keys[] = { - "name", - "flow_name", + "label", "description", - "label" + "flow_name", + "name" }; for (const char* key : keys) diff --git a/main.cpp b/main.cpp index 09bf958..6c29450 100644 --- a/main.cpp +++ b/main.cpp @@ -514,10 +514,21 @@ static void drawTileLabels( labelMax, IM_COL32(0, 0, 0, 175) ); + const ImVec4 labelClip( + labelMin.x, + labelMin.y, + labelMax.x, + labelMax.y + ); drawList->AddText( + nullptr, + 0.0f, textPos, tileLabelColor(status), - label.c_str() + label.c_str(), + nullptr, + 0.0f, + &labelClip ); } }