File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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' },
You can’t perform that action at this time.
0 commit comments