Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PersonalLogistics.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="BepInEx.Core" Version="5.*" />
<PackageReference Include="BepInEx.Core" Version="5.4.21" />
<PackageReference Include="DysonSphereProgram.GameLibs" Version="*-*" />
<PackageReference Include="DysonSphereProgram.Modding.CommonAPI" Version="*-*" />
<PackageReference Include="DysonSphereProgram.Modding.DSPModSave" Version="*-*" />
Expand Down
2 changes: 1 addition & 1 deletion PersonalLogisticsPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ private void InitUi()
_objectsToDestroy.Add(newButton.gameObject);
}

if (UIRoot.instance.uiGame.inventory != null && newButton != null)
if (UIRoot.instance.uiGame.inventoryWindow != null && newButton != null)
{
_initted = true;
}
Expand Down
4 changes: 2 additions & 2 deletions Scripts/RecycleWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private void Update()

Log.Debug("Instantiating Recycle window");
var prefab = Asset.bundle.LoadAsset<GameObject>("Assets/Prefab/Player Inventory Recycle.prefab");
var uiGameInventory = UIRoot.instance.uiGame.inventory;
var uiGameInventory = UIRoot.instance.uiGame.inventoryWindow;
_storageComponent = new StorageComponent(10);
_instanceGo = Instantiate(prefab, uiGameInventory.transform, false);

Expand Down Expand Up @@ -217,7 +217,7 @@ private void AddShowRecycleCheck()
chxGO = new GameObject("displayRecycleWindowCheck");

RectTransform checkBoxRectTransform = chxGO.AddComponent<RectTransform>();
checkBoxRectTransform.SetParent(UIRoot.instance.uiGame.inventory.transform, false);
checkBoxRectTransform.SetParent(UIRoot.instance.uiGame.inventoryWindow.transform, false);

checkBoxRectTransform.anchorMax = new Vector2(0, 1);
checkBoxRectTransform.anchorMin = new Vector2(0, 1);
Expand Down
2 changes: 1 addition & 1 deletion Scripts/RequesterWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private void Update()
{
var prefab = Asset.bundle.LoadAsset<GameObject>("Assets/prefab/Request Window.prefab");
Log.Debug($"Instantiating Requester window -- prefab == null {prefab == null}");
var uiGameInventory = UIRoot.instance.uiGame.inventory;
var uiGameInventory = UIRoot.instance.uiGame.inventoryWindow;
_instanceGo = Instantiate(prefab, uiGameInventory.transform.parent, false);
uiItemRequestWindow = _instanceGo.GetComponent<UIItemRequestWindow>();
if (!uiItemRequestWindow.created && !uiItemRequestWindow.destroyed)
Expand Down