1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-03-22 11:53:25 +08:00

UXAssist: some fixes

This commit is contained in:
2026-03-07 19:42:29 +08:00
parent 5e501ea649
commit ad99b49bad
3 changed files with 12 additions and 33 deletions

View File

@@ -2579,10 +2579,7 @@ public class FactoryPatch : PatchImpl<FactoryPatch>
foreach (var kvp in takeOutItems)
{
var added = mainPlayer.TryAddItemToPackage(kvp.Key, (int)(kvp.Value & 0xFFFFFFFF), (int)(kvp.Value >> 32), true, entityId);
if (added > 0)
{
UIItemup.Up(kvp.Key, added);
}
if (added > 0) UIItemup.Up(kvp.Key, added);
}
}
}

View File

@@ -134,6 +134,7 @@ public static class TechPatch
_protoPatched = false;
}
LDB.techs.Signature = ProtoSignature_0_10_30_3100.CalculateSignature(LDB.techs);
var techTree = UIRoot.instance?.uiGame?.techTree;
if (techTree != null && techTree.isActiveAndEnabled)
techTree.OnPageChanged();
@@ -268,6 +269,7 @@ public static class TechPatch
_originTechPosts.Clear();
_protoPatched = false;
}
LDB.techs.Signature = ProtoSignature_0_10_30_3100.CalculateSignature(LDB.techs);
var nodes = UIRoot.instance.uiGame.techTree.nodes;
var history = GameMain.history;
foreach (var item in nodes)