Skip to content

Commit 8e21b02

Browse files
Apply suggestions from code review
Co-authored-by: Myk <myk.taylor@gmail.com>
1 parent 7452b70 commit 8e21b02

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

docs/gui/mass-remove.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ framework.
3030
massremovetoolbar
3131
~~~~~~~~~~~~~~~~~
3232

33-
The mass-remove.massremovetoolbar overlay adds a button to the toolbar at the bottom of the
33+
The ``mass-remove.massremovetoolbar`` overlay adds a button to the toolbar at the bottom of the
3434
screen when eraser mode is active. It allows you to conveniently open the ``gui/mass-remove``
3535
interface.

gui/mass-remove.lua

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
--@ module = true
44

5-
local toolbar_textures = (dfhack.textures.loadTileset('hack/data/art/mass_remove_toolbar.png', 8,12))
5+
local toolbar_textures = dfhack.textures.loadTileset('hack/data/art/mass_remove_toolbar.png', 8, 12)
66

77
local BASELINE_OFFSET = 42
88

@@ -408,12 +408,10 @@ end
408408

409409
MassRemoveToolbarOverlay = defclass(MassRemoveToolbarOverlay, overlay.OverlayWidget)
410410
MassRemoveToolbarOverlay.ATTRS{
411-
desc='Adds widgets to the erase interface to open the mass removal tool',
411+
desc='Adds a button to the erase toolbar to open the mass removal tool',
412412
default_pos={x=BASELINE_OFFSET, y=-4},
413413
default_enabled=true,
414-
viewscreens={
415-
'dwarfmode/Designate/ERASE'
416-
},
414+
viewscreens='dwarfmode/Designate/ERASE',
417415
frame={w=26, h=11},
418416
}
419417

@@ -434,7 +432,8 @@ function MassRemoveToolbarOverlay:init()
434432
subviews={
435433
widgets.Label{
436434
text={
437-
'Open mass removal\ninterface.', NEWLINE,
435+
'Open mass removal', NEWLINE,
436+
'interface.', NEWLINE,
438437
NEWLINE,
439438
{text='Hotkey: ', pen=COLOR_GRAY}, {key='CUSTOM_M'},
440439
},

0 commit comments

Comments
 (0)