Skip to content

Commit 3cb6c8f

Browse files
authored
Update SelectLockLabors.lua
deleted couple of comments and added hotkey to cycle mods.
1 parent c218558 commit 3cb6c8f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SelectLockLabors.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ local function simulate_actions(self, count)
4242
if self.action_mode ~= 'select' then
4343
gui.simulateInput(viewscreen, 'UNITLIST_SPECIALIZE')
4444
end
45-
--This line is keyboard arrow down
4645
gui.simulateInput(viewscreen, 'STANDARDSCROLL_DOWN')
47-
--CONTEXT_SCROLL_DOWN helps with consistency. Otherwise the program will miss some units. Line below is scroll wheel down
4846
gui.simulateInput(viewscreen, 'CONTEXT_SCROLL_DOWN')
4947

5048
dfhack.timeout(3, 'frames', function() step(i + 1) end)
@@ -57,6 +55,7 @@ function SelectLockOverlay:init()
5755
self.action_mode = 'both'
5856
self.entry_count = 7
5957
self.is_running = false
58+
6059
self:addviews{
6160
widgets.Panel{
6261
frame_style = gui.MEDIUM_FRAME,
@@ -67,6 +66,7 @@ function SelectLockOverlay:init()
6766
frame = {l = 1, t = 1},
6867
label = 'Mode',
6968
option_gap = 2,
69+
key = 'CUSTOM_S', -- press 's' to cycle modes
7070
options = {
7171
{label = 'Select only', value = 'select'},
7272
{label = 'Lock only', value = 'lock'},

0 commit comments

Comments
 (0)