Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[confirm] add prompt for re-running embark site finder #923

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Template for new versions:
- `confirm`: added confirmation prompts for irreversible actions on the trade screen
- `confirm`: added confirmation prompt for deleting a uniform
- `confirm`: added confirmation prompt for convicting a criminal
- `confirm`: added confirmation prompt for re-running the embark site finder
- `gui/autobutcher`: interface redesigned to better support mouse control
- `gui/launcher`: now persists the most recent 32KB of command output even if you close it and bring it back up
- `gui/quickcmd`: clickable buttons for command add/remove/edit operations
Expand Down
13 changes: 13 additions & 0 deletions internal/confirm/specs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,19 @@ ConfirmSpec{
pausable=true,
}

ConfirmSpec{
id='embark-site-finder',
title='Re-run finder',
message='Are you sure you want to re-run the site finder? Your current map highlights will be lost.',
intercept_keys='_MOUSE_L',
intercept_frame={r=2, t=36, w=7, h=3},
context='choose_start_site/SiteFinder',
predicate=function()
return dfhack.gui.getDFViewscreen(true).find_results ~= df.viewscreen_choose_start_sitest.T_find_results.None
end,
pausable=true,
}

--------------------------
-- Config file management
--
Expand Down