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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user