Add stockpile removal confirm

develop
Robob27 2023-02-02 02:50:33 -05:00
parent fdbe91e35b
commit a5de0fb0de
2 changed files with 8 additions and 0 deletions

@ -594,6 +594,7 @@ DEFINE_CONFIRMATION(squad_disband, viewscreen_dwarfmodest);
DEFINE_CONFIRMATION(order_remove, viewscreen_dwarfmodest);
DEFINE_CONFIRMATION(zone_remove, viewscreen_dwarfmodest);
DEFINE_CONFIRMATION(burrow_remove, viewscreen_dwarfmodest);
DEFINE_CONFIRMATION(stockpile_remove, viewscreen_dwarfmodest);
// these are more complex to implement
//DEFINE_CONFIRMATION(convict, viewscreen_dwarfmodest);

@ -125,6 +125,13 @@ end
burrow_remove.title = "Remove burrow"
burrow_remove.message = "Are you sure you want to remove this burrow?"
stockpile_remove = defconf('stockpile-remove')
function stockpile_remove.intercept_key(key)
return key == MOUSE_LEFT and df.global.game.main_interface.current_hover == 118
end
stockpile_remove.title = "Remove stockpile"
stockpile_remove.message = "Are you sure you want to remove this stockpile?"
-- these confirmations have more complex button detection requirements
--[[
trade = defconf('trade')