void Awake() { mod.IsReady = true; fenceWindow = new FenceWindow(DaggerfallUI.UIManager, npc, GameManager.Instance.GuildManager.GetGuildGroup(805)); Debug.Log("[ThiefOverhaul] Mod is ready."); }
public static void ShadowAppraiserClicked(RaycastHit hit) { FactionFile.FactionData factionData; FactionFile.GuildGroups guildGroup; npc = QuestMachine.Instance.LastNPCClicked; GuildServices service = Services.GetService((GuildNpcServices)npc.Data.factionID); if (QuestMachine.Instance.HasFactionListener(npc.Data.factionID)) { return; } if (GameManager.Instance.PlayerEntity.FactionData.GetFactionData(npc.Data.factionID, out factionData)) { if (Services.HasGuildService(npc.Data.factionID) && npc.Data.factionID == 805) { (DaggerfallUI.Instance.UserInterfaceManager.TopWindow as DaggerfallGuildServicePopupWindow).CloseWindow(); guildGroup = GameManager.Instance.GuildManager.GetGuildGroup(805); FenceWindow fenceWindow = new FenceWindow(DaggerfallUI.UIManager, npc, guildGroup); DaggerfallUI.UIManager.PushWindow(fenceWindow); } } }