From 5b0049a53a1ddcd8905cbd5ed2adc51745d30d8e Mon Sep 17 00:00:00 2001 From: Halavus Nenuli Date: Tue, 10 Mar 2026 20:56:28 +0100 Subject: [PATCH 1/4] Added small tooltip about renaming favorites --- plugins/lua/buildingplan/planneroverlay.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/plugins/lua/buildingplan/planneroverlay.lua b/plugins/lua/buildingplan/planneroverlay.lua index f0fbe17de4..f57057dbdd 100644 --- a/plugins/lua/buildingplan/planneroverlay.lua +++ b/plugins/lua/buildingplan/planneroverlay.lua @@ -903,7 +903,7 @@ function PlannerOverlay:init() local favorites_panel = widgets.Panel{ view_id='favorites', - frame={t=15, l=0, r=0, h=9}, + frame={t=15, l=0, r=0, h=11}, frame_style=gui.FRAME_INTERIOR_MEDIUM, frame_background=gui.CLEAR_PEN, visible=self:callback('show_favorites'), @@ -940,7 +940,7 @@ function PlannerOverlay:init() is_selected_fn=make_is_selected_filter('0') }, widgets.CycleHotkeyLabel { view_id='slot_select', - frame={b=0, l=2}, + frame={b=2, l=2}, key='CUSTOM_X', key_back='CUSTOM_SHIFT_X', label='next/previous slot', @@ -950,11 +950,15 @@ function PlannerOverlay:init() on_change=function(val) self.selected_favorite = val end, }, widgets.HotkeyLabel{ - frame={b=0, l=28}, + frame={b=2, l=28}, label="set/apply selected", key='CUSTOM_Y', on_activate=function () self:save_restore_filter(self.selected_favorite) end, }, + widgets.Label { + frame={b=0, l=2}, + text="Shift+click to edit the label of a favorite" + }, } } @@ -974,7 +978,7 @@ function PlannerOverlay:show_favorites() end function PlannerOverlay:show_hide_favorites(new) - local errors_frame = {t=15+(new and 9 or 0), l=0, r=0} + local errors_frame = {t=15+(new and 11 or 0), l=0, r=0} self.subviews.errors.frame = errors_frame self:updateLayout() end From 692de1b68c10c9f5f30f9f2666862c5103f81bbc Mon Sep 17 00:00:00 2001 From: Halavus Nenuli Date: Tue, 10 Mar 2026 21:19:56 +0100 Subject: [PATCH 2/4] Add tooltip for renaming favorites in buildingplan Added tooltip text about renaming favorites in the UI for buildingplan. --- docs/changelog.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/changelog.txt b/docs/changelog.txt index fdde2f1639..74c093afc6 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -63,6 +63,8 @@ Template for new versions: ## Misc Improvements - General: DFHack will unconditionally use UTF-8 for the console on Windows, now that DF forces the process effective system code page to 65001 during startup +- `buildingplan`: added a small tooltip text about renaming favorites in the UI + ## Documentation From 704c6a19ebc1a28b7773db720ef0485102eefa94 Mon Sep 17 00:00:00 2001 From: Halavus Nenuli Date: Tue, 10 Mar 2026 22:43:43 +0100 Subject: [PATCH 3/4] Fix formatting of label widget in planner overlay --- plugins/lua/buildingplan/planneroverlay.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/lua/buildingplan/planneroverlay.lua b/plugins/lua/buildingplan/planneroverlay.lua index f57057dbdd..1cb35abdb8 100644 --- a/plugins/lua/buildingplan/planneroverlay.lua +++ b/plugins/lua/buildingplan/planneroverlay.lua @@ -955,10 +955,10 @@ function PlannerOverlay:init() key='CUSTOM_Y', on_activate=function () self:save_restore_filter(self.selected_favorite) end, }, - widgets.Label { - frame={b=0, l=2}, - text="Shift+click to edit the label of a favorite" - }, + widgets.Label { + frame={b=0, l=2}, + text="Shift+click to edit the label of a favorite" + }, } } From 39f9613cb6c330d005445bee321527284fb11e06 Mon Sep 17 00:00:00 2001 From: Halavus Nenuli Date: Wed, 11 Mar 2026 00:44:36 +0100 Subject: [PATCH 4/4] Looks better with the in-built TooltipLabel --- plugins/lua/buildingplan/planneroverlay.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/lua/buildingplan/planneroverlay.lua b/plugins/lua/buildingplan/planneroverlay.lua index 1cb35abdb8..f947b123dd 100644 --- a/plugins/lua/buildingplan/planneroverlay.lua +++ b/plugins/lua/buildingplan/planneroverlay.lua @@ -955,9 +955,10 @@ function PlannerOverlay:init() key='CUSTOM_Y', on_activate=function () self:save_restore_filter(self.selected_favorite) end, }, - widgets.Label { + widgets.TooltipLabel { frame={b=0, l=2}, - text="Shift+click to edit the label of a favorite" + show_tooltip=true, + text="Shift+click to edit the label of a favorite", }, }