Make ui_sidebar_menus scan open menu automatically

develop
lethosor 2016-03-26 23:23:34 -04:00
parent 85cfaa6dbd
commit 2935d8d6be
1 changed files with 11 additions and 4 deletions

@ -736,11 +736,18 @@ local function find_ui_sidebar_menus()
dwarfmode_feed_input('D_BUILDJOB')
addr = searcher:find_interactive([[
Auto-searching for ui_sidebar_menus. Please select a Mason,
Craftsdwarfs, or Carpenters workshop, open the Add Job
menu, and move the cursor within:]],
Auto-searching for ui_sidebar_menus. Please select a Mason's,
Craftsdwarf's, or Carpenter's workshop:]],
'int32_t',
feed_list_choice(7),
function(idx)
if idx == 0 then
prompt_proceed(2)
-- ensure that the job list isn't full
dwarfmode_feed_input('BUILDJOB_CANCEL', 'BUILDJOB_ADD')
return true, 0
end
return feed_list_choice(7)(idx)
end,
20
)
end