@@ -198,7 +198,7 @@ ConfirmSpec{
198
198
message = ' Are you sure you want to delete this route?' ,
199
199
intercept_keys = ' _MOUSE_L' ,
200
200
context = ' dwarfmode/Hauling' ,
201
- predicate = function () return mi .current_hover == 180 end ,
201
+ predicate = function () return mi .current_hover == df . main_hover_instruction . RouteRemove end ,
202
202
pausable = true ,
203
203
}
204
204
@@ -208,7 +208,7 @@ ConfirmSpec{
208
208
message = ' Are you sure you want to delete this stop?' ,
209
209
intercept_keys = ' _MOUSE_L' ,
210
210
context = ' dwarfmode/Hauling' ,
211
- predicate = function () return mi .current_hover == 185 end ,
211
+ predicate = function () return mi .current_hover == df . main_hover_instruction . StopRemove end ,
212
212
pausable = true ,
213
213
}
214
214
@@ -219,7 +219,7 @@ ConfirmSpec{
219
219
intercept_keys = ' _MOUSE_L' ,
220
220
context = ' dwarfmode/ViewSheets/BUILDING/TradeDepot' ,
221
221
predicate = function ()
222
- return mi .current_hover == 301 and has_caravans ()
222
+ return mi .current_hover == df . main_hover_instruction . BuildingRemove and has_caravans ()
223
223
end ,
224
224
}
225
225
@@ -229,7 +229,7 @@ ConfirmSpec{
229
229
message = ' Are you sure you want to disband this squad?' ,
230
230
intercept_keys = ' _MOUSE_L' ,
231
231
context = ' dwarfmode/Squads' ,
232
- predicate = function () return mi .current_hover == 343 end ,
232
+ predicate = function () return mi .current_hover == df . main_hover_instruction . SquadDisband end ,
233
233
pausable = true ,
234
234
}
235
235
@@ -424,7 +424,7 @@ ConfirmSpec{
424
424
message = ' Are you sure you want to remove this manager order?' ,
425
425
intercept_keys = ' _MOUSE_L' ,
426
426
context = ' dwarfmode/Info/WORK_ORDERS/Default' ,
427
- predicate = function () return mi .current_hover == 222 end ,
427
+ predicate = function () return mi .current_hover == df . main_hover_instruction . ManagerOrderRemove end ,
428
428
pausable = true ,
429
429
}
430
430
@@ -446,7 +446,8 @@ ConfirmSpec{
446
446
intercept_keys = ' _MOUSE_L' ,
447
447
context = ' dwarfmode/Burrow' ,
448
448
predicate = function ()
449
- return mi .current_hover == 171 or mi .current_hover == 168
449
+ return mi .current_hover == df .main_hover_instruction .BurrowRemove or
450
+ mi .current_hover == df .main_hover_instruction .BurrowRemovePaint
450
451
end ,
451
452
pausable = true ,
452
453
}
@@ -457,7 +458,7 @@ ConfirmSpec{
457
458
message = ' Are you sure you want to remove this stockpile?' ,
458
459
intercept_keys = ' _MOUSE_L' ,
459
460
context = ' dwarfmode/Stockpile' ,
460
- predicate = function () return mi .current_hover == 118 end ,
461
+ predicate = function () return mi .current_hover == df . main_hover_instruction . StockpileRemove end ,
461
462
pausable = true ,
462
463
}
463
464
0 commit comments