Skip to content

Commit 0fa2f11

Browse files
authored
Merge pull request #1347 from myk002/myk_design_zone
[gui/design] handle zone painting for dims tooltip
2 parents 24994be + a21636e commit 0fa2f11

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Template for new versions:
5050
- `idle-crafting`: also support making shell crafts for workshops with linked input stockpiles
5151
- `gui/gm-editor`: automatic display of semantic values for language_name fields
5252
- `fix/stuck-worship`: reduced console output by default. Added ``--verbose`` and ``--quiet`` options.
53+
- `gui/design`: add dimensions tooltip to vanilla zone painting interface
5354
- `necronomicon`: new ``--world`` option to list all secret-containing items in the entire world
5455
- `gui/design`: new ``gui/design.rightclick`` overlay that prevents right click from closing designation mode when drawing boxes and minecart tracks
5556

gui/design.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ DimensionsOverlay.ATTRS{
6767
'dwarfmode/Designate',
6868
'dwarfmode/Burrow/Paint',
6969
'dwarfmode/Stockpile/Paint',
70+
'dwarfmode/Zone/Paint',
7071
'dwarfmode/Building/Placement',
7172
},
7273
}
@@ -101,10 +102,11 @@ function DimensionsOverlay:init()
101102
}
102103
end
103104

104-
-- don't imply that stockpiles will be 3d
105+
-- don't imply that stockpiles or zones will be 3d
105106
local function check_stockpile_dims()
106-
if main_interface.bottom_mode_selected == df.main_bottom_mode_type.STOCKPILE_PAINT and
107-
selection_rect.start_x > 0
107+
if selection_rect.start_x > 0 and
108+
(main_interface.bottom_mode_selected == df.main_bottom_mode_type.STOCKPILE_PAINT or
109+
main_interface.bottom_mode_selected == df.main_bottom_mode_type.ZONE_PAINT)
108110
then
109111
selection_rect.start_z = df.global.window_z
110112
end

0 commit comments

Comments
 (0)