From 8cd5a2298a1062846e23b197b93592935dbf70f1 Mon Sep 17 00:00:00 2001 From: TianHengZhuang <39034691+TianHengZhuang@users.noreply.github.com> Date: Wed, 2 Sep 2026 00:09:06 +0800 Subject: [PATCH] Add tooltips to TLE manager copy/remove buttons Add GuiSetTooltip calls before the C (copy) and X (remove) buttons in the TLE manager so hovering shows what each button does. --- src/ui.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui.c b/src/ui.c index 6202de4..96e17ea 100644 --- a/src/ui.c +++ b/src/ui.c @@ -2493,7 +2493,8 @@ void DrawGUI(UIContext *ctx, AppConfig *cfg, Font customFont) if (delim) *delim = '\0'; GuiLabel((Rectangle){viewRec.x + 10 * cfg->ui_scale + tle_mgr_scroll.x, current_y, viewRec.width - 85 * cfg->ui_scale, 24 * cfg->ui_scale}, display_name); - + GuiSetTooltip("Copy TLE to clipboard"); + if (GuiButton((Rectangle){viewRec.x + viewRec.width - 70 * cfg->ui_scale + tle_mgr_scroll.x, current_y, 30 * cfg->ui_scale, 24 * cfg->ui_scale}, "C")) { char copy_buf[512]; @@ -2503,6 +2504,7 @@ void DrawGUI(UIContext *ctx, AppConfig *cfg, Font customFont) } SetClipboardText(copy_buf); } + GuiSetTooltip("Remove TLE"); if (GuiButton((Rectangle){viewRec.x + viewRec.width - 35 * cfg->ui_scale + tle_mgr_scroll.x, current_y, 30 * cfg->ui_scale, 24 * cfg->ui_scale}, "X")) {