fix(uxassist): honor saved building options at startup

This commit is contained in:
soarqin committed 2026-10-10 23:45:16 +08:00
1 parent 6845b0c56f
commit 6a292e0816
4 files changed
+8 -8

No files matched your search

+1 -6
View File
@@ -12,14 +12,9 @@ namespace UXAssist.Patches.Factory;
internal static class BuildToolPatch
{
public static void Enable(bool enable)
public static void EnableAlwaysOnPatches(bool enable)
{
BuildGizmoPatch.Enable(enable);
OffGridBuilding.Enable(enable);
TreatStackingAsSingle.Enable(enable);
DragBuildPowerPoles.Enable(enable);
TankFastFillInAndTakeOut.Enable(enable);
PressShiftToTakeWholeBeltItems.Enable(enable);
}
private class BuildGizmoPatch : PatchImpl<BuildGizmoPatch>
+2 -2
View File
@@ -163,13 +163,13 @@ public static class FactoryPatch
BuildingBufferPatch.TweakBuildingBuffer.Enable(TweakBuildingBufferEnabled.Value);
BuildToolPatch.PressShiftToTakeWholeBeltItems.Enable(PressShiftToTakeWholeBeltItemsEnabled.Value);
BuildToolPatch.Enable(true);
BuildToolPatch.EnableAlwaysOnPatches(true);
UpdateTankFastFillInAndTakeOutMultiplierRealValue();
}
public static void Uninit()
{
BuildToolPatch.Enable(false);
BuildToolPatch.EnableAlwaysOnPatches(false);
BuildToolPatch.PressShiftToTakeWholeBeltItems.Enable(false);
BuildingBufferPatch.TweakBuildingBuffer.Enable(false);