From 1ae96c71a36350f19080938d2de87f9944a7e964 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Mon, 19 Dec 2022 23:53:35 +0100 Subject: [PATCH] Use CreateIndividualCollection instead of Add in interface to trigger events. --- Penumbra/UI/ConfigWindow.CollectionsTab.Individual.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Penumbra/UI/ConfigWindow.CollectionsTab.Individual.cs b/Penumbra/UI/ConfigWindow.CollectionsTab.Individual.cs index 16ae8253..39ab6a6c 100644 --- a/Penumbra/UI/ConfigWindow.CollectionsTab.Individual.cs +++ b/Penumbra/UI/ConfigWindow.CollectionsTab.Individual.cs @@ -179,7 +179,7 @@ public partial class ConfigWindow ImGui.SameLine(); if( ImGuiUtil.DrawDisabledButton( "Assign Player", buttonWidth, _newPlayerTooltip, _newPlayerTooltip.Length > 0 || _newPlayerIdentifiers.Length == 0 ) ) { - Penumbra.CollectionManager.Individuals.Add( _newPlayerIdentifiers, Penumbra.CollectionManager.Default ); + Penumbra.CollectionManager.CreateIndividualCollection( _newPlayerIdentifiers ); change = true; } @@ -196,7 +196,7 @@ public partial class ConfigWindow ImGui.SameLine(); if( ImGuiUtil.DrawDisabledButton( "Assign NPC", buttonWidth, _newNpcTooltip, _newNpcIdentifiers.Length == 0 || _newNpcTooltip.Length > 0 ) ) { - Penumbra.CollectionManager.Individuals.Add( _newNpcIdentifiers, Penumbra.CollectionManager.Default ); + Penumbra.CollectionManager.CreateIndividualCollection( _newNpcIdentifiers ); change = true; } @@ -207,7 +207,7 @@ public partial class ConfigWindow { if( ImGuiUtil.DrawDisabledButton( "Assign Owned NPC", buttonWidth, _newOwnedTooltip, _newOwnedIdentifiers.Length == 0 || _newOwnedTooltip.Length > 0 ) ) { - Penumbra.CollectionManager.Individuals.Add( _newOwnedIdentifiers, Penumbra.CollectionManager.Default ); + Penumbra.CollectionManager.CreateIndividualCollection( _newOwnedIdentifiers ); return true; } @@ -218,7 +218,7 @@ public partial class ConfigWindow { if( ImGuiUtil.DrawDisabledButton( "Assign Bell Retainer", buttonWidth, _newRetainerTooltip, _newRetainerIdentifiers.Length == 0 || _newRetainerTooltip.Length > 0 ) ) { - Penumbra.CollectionManager.Individuals.Add( _newRetainerIdentifiers, Penumbra.CollectionManager.Default ); + Penumbra.CollectionManager.CreateIndividualCollection( _newRetainerIdentifiers ); return true; }