From a21636e77a08705f06ad0ee6f326ab550d1d8780 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Thu, 5 Dec 2024 18:49:26 -0800 Subject: [PATCH] handle zone painting for dims tooltip --- changelog.txt | 1 + gui/design.lua | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index fd18b433ef..22f438e71f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -50,6 +50,7 @@ Template for new versions: - `idle-crafting`: also support making shell crafts for workshops with linked input stockpiles - `gui/gm-editor`: automatic display of semantic values for language_name fields - `fix/stuck-worship`: reduced console output by default. Added ``--verbose`` and ``--quiet`` options. +- `gui/design`: add dimensions tooltip to vanilla zone painting interface - `necronomicon`: new ``--world`` option to list all secret-containing items in the entire world ## Removed diff --git a/gui/design.lua b/gui/design.lua index 5e90a47978..e011fc8a61 100644 --- a/gui/design.lua +++ b/gui/design.lua @@ -67,6 +67,7 @@ DimensionsOverlay.ATTRS{ 'dwarfmode/Designate', 'dwarfmode/Burrow/Paint', 'dwarfmode/Stockpile/Paint', + 'dwarfmode/Zone/Paint', 'dwarfmode/Building/Placement', }, } @@ -101,10 +102,11 @@ function DimensionsOverlay:init() } end --- don't imply that stockpiles will be 3d +-- don't imply that stockpiles or zones will be 3d local function check_stockpile_dims() - if main_interface.bottom_mode_selected == df.main_bottom_mode_type.STOCKPILE_PAINT and - selection_rect.start_x > 0 + if selection_rect.start_x > 0 and + (main_interface.bottom_mode_selected == df.main_bottom_mode_type.STOCKPILE_PAINT or + main_interface.bottom_mode_selected == df.main_bottom_mode_type.ZONE_PAINT) then selection_rect.start_z = df.global.window_z end