Skip to content

Commit

Permalink
Fix confirm hover instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
robob27 committed Nov 11, 2024
1 parent 036ddb3 commit ca2090e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Template for new versions:
- `makeown`: halt any hostile jobs the unit may be engaged in, like kidnapping
- `fix/loyaltycascade`: allow the fix to work on non-dwarven citizens
- `control-panel`: fix setting numeric preferences from the commandline
- `gui/confirm`: fix some confirmations prompts not working

## Misc Improvements
- `control-panel`: Add realistic-melting tweak to control-panel registry
Expand Down
16 changes: 8 additions & 8 deletions internal/confirm/specs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ ConfirmSpec{
message='Are you sure you want to delete this route?',
intercept_keys='_MOUSE_L',
context='dwarfmode/Hauling',
predicate=function() return mi.current_hover == df.main_hover_instruction.RouteRemove end,
predicate=function() return mi.current_hover == df.main_hover_instruction.HAULING_REMOVE_ROUTE end,
pausable=true,
}

Expand All @@ -223,7 +223,7 @@ ConfirmSpec{
message='Are you sure you want to delete this stop?',
intercept_keys='_MOUSE_L',
context='dwarfmode/Hauling',
predicate=function() return mi.current_hover == df.main_hover_instruction.StopRemove end,
predicate=function() return mi.current_hover == df.main_hover_instruction.HAULING_REMOVE_STOP end,
pausable=true,
}

Expand All @@ -234,7 +234,7 @@ ConfirmSpec{
intercept_keys='_MOUSE_L',
context='dwarfmode/ViewSheets/BUILDING/TradeDepot',
predicate=function()
return mi.current_hover == df.main_hover_instruction.BuildingRemove and has_caravans()
return mi.current_hover == df.main_hover_instruction.BUILDING_SHEET_REMOVE and has_caravans()
end,
}

Expand All @@ -244,7 +244,7 @@ ConfirmSpec{
message='Are you sure you want to disband this squad?',
intercept_keys='_MOUSE_L',
context='dwarfmode/Squads',
predicate=function() return mi.current_hover == df.main_hover_instruction.SquadDisband end,
predicate=function() return mi.current_hover == df.main_hover_instruction.SQUAD_DISBAND end,
pausable=true,
}

Expand Down Expand Up @@ -438,7 +438,7 @@ ConfirmSpec{
message='Are you sure you want to remove this manager order?',
intercept_keys='_MOUSE_L',
context='dwarfmode/Info/WORK_ORDERS/Default',
predicate=function() return mi.current_hover == df.main_hover_instruction.ManagerOrderRemove end,
predicate=function() return mi.current_hover == df.main_hover_instruction.WORK_ORDERS_REMOVE end,
pausable=true,
}

Expand All @@ -460,8 +460,8 @@ ConfirmSpec{
intercept_keys='_MOUSE_L',
context='dwarfmode/Burrow',
predicate=function()
return mi.current_hover == df.main_hover_instruction.BurrowRemove or
mi.current_hover == df.main_hover_instruction.BurrowRemovePaint
return mi.current_hover == df.main_hover_instruction.BURROW_REMOVE_EXISTING or
mi.current_hover == df.main_hover_instruction.BURROW_PAINT_REMOVE
end,
pausable=true,
}
Expand All @@ -472,7 +472,7 @@ ConfirmSpec{
message='Are you sure you want to remove this stockpile?',
intercept_keys='_MOUSE_L',
context='dwarfmode/Stockpile',
predicate=function() return mi.current_hover == df.main_hover_instruction.StockpileRemove end,
predicate=function() return mi.current_hover == df.main_hover_instruction.STOCKPILE_REMOVE_EXISTING end,
pausable=true,
}

Expand Down

0 comments on commit ca2090e

Please sign in to comment.