Skip to content

Commit

Permalink
Merge pull request #1333 from robob27/robob27/confirm-hover-fix
Browse files Browse the repository at this point in the history
Fix confirm hover instructions
  • Loading branch information
myk002 authored Nov 11, 2024
2 parents 53777f4 + 7078644 commit 3472126
Showing 1 changed file with 8 additions and 8 deletions.
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 3472126

Please sign in to comment.