From deb3c57cccf56b8c649d008bff2132b14484f84b Mon Sep 17 00:00:00 2001 From: Chris Johnsen Date: Thu, 16 Jul 2026 23:18:18 -0500 Subject: [PATCH] buildingplan/planneroverlay: adjust bottom-anchored widget positions When, in 39cc838655f3a97c74cb6f4cc57d17c9f59cec8d, the main_panel gained an extra UI line to accommodate the "queue order" hotkey label, the other bottom-anchored widgets in the upper portion of the main_panel were not adjusted. Several of these (conditional) widgets end up being drawn "under" the divider. They are still present (their hotkeys still work (and they are still clickable!), but they are not visible). The inadvertently hidden widgets are: - the hotkeys (and weapon count) for weapon traps - the hollow toggle for constructions (walls, floors, etc.) - the engraved-only toggle for slabs - the empty-only toggle for (non-trap) cages The other bottom-anchored "upper" widgets are: - the slider for weapon traps - the up/down/up-down/auto selectors for single- and multi-level stairs Move all these widgets up one UI line to unhide the "hidden" widgets and preserve their relative vertical layouts. --- docs/changelog.txt | 1 + plugins/lua/buildingplan/planneroverlay.lua | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index 7d51a61dad..0d6cc38214 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -59,6 +59,7 @@ Template for new versions: ## New Features ## Fixes +- `buildingplan`: restore planner UI elements: hollow constructions, only engraved slabs, only empty cages, weapon count ## Misc Improvements diff --git a/plugins/lua/buildingplan/planneroverlay.lua b/plugins/lua/buildingplan/planneroverlay.lua index f33722b3b3..4d7180afed 100644 --- a/plugins/lua/buildingplan/planneroverlay.lua +++ b/plugins/lua/buildingplan/planneroverlay.lua @@ -700,7 +700,7 @@ function PlannerOverlay:init() self:addviews{ widgets.CycleHotkeyLabel{ view_id='weapons_hotkey', - frame={b=4, l=1, w=28}, + frame={b=5, l=1, w=28}, key='CUSTOM_T', key_back='CUSTOM_SHIFT_T', label='Number of weapons:', @@ -713,7 +713,7 @@ function PlannerOverlay:init() widgets.Slider{ view_id='weapons_slider', - frame={b=6, l=4, w=35}, + frame={b=7, l=4, w=35}, num_stops=#self.options, get_idx_fn=function() return weapon_quantity end, on_change=function(val) @@ -749,7 +749,7 @@ function PlannerOverlay:init() on_clear_filter=self:callback('clear_filter')}, widgets.CycleHotkeyLabel{ view_id='hollow', - frame={b=4, l=1, w=21}, + frame={b=5, l=1, w=21}, key='CUSTOM_H', label='Hollow area:', visible=is_construction, @@ -760,7 +760,7 @@ function PlannerOverlay:init() }, widgets.CycleHotkeyLabel{ view_id='stairs_top_subtype', - frame={b=7, l=1, w=30}, + frame={b=8, l=1, w=30}, key='CUSTOM_R', label='Top stair type: ', visible=is_multi_level_stairs, @@ -772,7 +772,7 @@ function PlannerOverlay:init() }, widgets.CycleHotkeyLabel { view_id='stairs_bottom_subtype', - frame={b=6, l=1, w=30}, + frame={b=7, l=1, w=30}, key='CUSTOM_B', label='Bottom Stair Type:', visible=is_multi_level_stairs, @@ -784,7 +784,7 @@ function PlannerOverlay:init() }, widgets.CycleHotkeyLabel{ view_id='stairs_only_subtype', - frame={b=7, l=1, w=30}, + frame={b=8, l=1, w=30}, key='CUSTOM_R', label='Single level stair:', visible=is_single_level_stairs, @@ -799,7 +799,7 @@ function PlannerOverlay:init() widgets.ToggleHotkeyLabel { view_id='engraved', - frame={b=4, l=1, w=22}, + frame={b=5, l=1, w=22}, key='CUSTOM_T', label='Engraved only:', visible=is_slab, @@ -809,7 +809,7 @@ function PlannerOverlay:init() }, widgets.ToggleHotkeyLabel { view_id='empty', - frame={b=4, l=1, w=22}, + frame={b=5, l=1, w=22}, key='CUSTOM_T', label='Empty only:', visible=is_cage,