Project Zomboid

Project Zomboid

评价数不足
Delete All Fix
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
44.644 KB
2024 年 9 月 4 日 下午 6:38
2024 年 9 月 8 日 上午 11:32
2 项改动说明 ( 查看 )

订阅以下载
Delete All Fix

描述
Small bug fix when deleting items from containers.
When deleting the contents of a container with the delete button a confirmation window pops up, if you change containers while this window is up (or too quickly after hitting yes on the confirmation window) it will delete the container that you changed to and not the container you opened the confirmation window on.

To fix this i did a hard override of the delete function to capture the original location of the container the confirmation window was created on, and to delete that container.

Should work with controller but i didnt test (please let me know if it does), probably not compatible with other mods that effect the "ISInventoryPane:removeAll" and "ISInventoryPane:onConfirmDelete" as this is a hard override of those functions.

Workshop ID: 3324752609
Mod ID: DeleteAllFix