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
5 changes: 3 additions & 2 deletions Assets/Scripts/Game/PlayerActivate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ void ActivateLootContainer(RaycastHit hit, DaggerfallLoot loot)
}
// Open inventory window with activated loot container as remote target (if we fall through to here)
DaggerfallUI.Instance.InventoryWindow.LootTarget = loot;
DaggerfallUI.PostMessage(DaggerfallUIMessages.dfuiOpenInventoryWindow);
uiManager.PushWindow(DaggerfallUI.Instance.InventoryWindow);
}

void DisableEmptyCorpseContainer(GameObject go)
Expand Down Expand Up @@ -1087,7 +1087,8 @@ public void PrivateProperty_OnButtonClick(DaggerfallMessageBox sender, Daggerfal
if (messageBoxButton == DaggerfallMessageBox.MessageBoxButtons.Yes)
{
// Open inventory window with activated private container as remote target (pre-set)
DaggerfallUI.PostMessage(DaggerfallUIMessages.dfuiOpenInventoryWindow);
UserInterfaceManager uiManager = DaggerfallUI.Instance.UserInterfaceManager;
uiManager.PushWindow(DaggerfallUI.Instance.InventoryWindow);
}
else
DaggerfallUI.Instance.InventoryWindow.LootTarget = null;
Expand Down
6 changes: 4 additions & 2 deletions Assets/Scripts/Game/Questing/Actions/GivePc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using UnityEngine;
using System.Text.RegularExpressions;
using DaggerfallWorkshop.Utility;
using DaggerfallWorkshop.Game.UserInterface;
using DaggerfallWorkshop.Game.UserInterfaceWindows;
using FullSerializer;

Expand Down Expand Up @@ -190,8 +191,9 @@ private void QuestCompleteMessage_OnClose()
// Open loot reward container once QuestComplete dismissed
if (rewardLoot != null)
{
UserInterfaceManager uiManager = DaggerfallUI.Instance.UserInterfaceManager;
DaggerfallUI.Instance.InventoryWindow.LootTarget = rewardLoot;
DaggerfallUI.PostMessage(DaggerfallUIMessages.dfuiOpenInventoryWindow);
uiManager.PushWindow(DaggerfallUI.Instance.InventoryWindow);
}
}

Expand Down Expand Up @@ -244,4 +246,4 @@ protected virtual void RaiseOnOfferPendingEvent(GivePc sender)

#endregion
}
}
}