Stoppable multi-unload in raid
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using Aki.Reflection.Patching;
|
||||
using Aki.Reflection.Utils;
|
||||
using Comfort.Common;
|
||||
using EFT;
|
||||
using EFT.Communications;
|
||||
using EFT.InventoryLogic;
|
||||
using EFT.UI;
|
||||
@@ -55,6 +55,7 @@ namespace UIFixes
|
||||
// Actions
|
||||
new ItemViewClickPatch().Enable();
|
||||
new ContextActionsPatch().Enable();
|
||||
new StopProcessesPatch().Enable();
|
||||
|
||||
// GridView
|
||||
new GridViewCanAcceptPatch().Enable();
|
||||
@@ -296,6 +297,20 @@ namespace UIFixes
|
||||
}
|
||||
}
|
||||
|
||||
public class StopProcessesPatch : ModulePatch
|
||||
{
|
||||
protected override MethodBase GetTargetMethod()
|
||||
{
|
||||
return AccessTools.DeclaredMethod(typeof(Player.PlayerInventoryController), nameof(Player.PlayerInventoryController.StopProcesses));
|
||||
}
|
||||
|
||||
[PatchPostfix]
|
||||
public static void Postfix()
|
||||
{
|
||||
MultiSelect.StopUnloading();
|
||||
}
|
||||
}
|
||||
|
||||
// TradingItemView overrides GridItemView.OnClick and doesn't call base
|
||||
public class DeselectOnTradingItemViewClickPatch : ModulePatch
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user