Modifier display improvement

This commit is contained in:
AlchlcDvl committed 2025-05-04 22:15:08 -04:00
1 parent e4f15f2ed9
commit a9ded0b313
3 files changed
+12 -1

No files matched your search

@@ -104,6 +104,16 @@ public class ModifierDisplayComponent(nint ptr) : MonoBehaviour(ptr)
UpdateModifiersList([.. PlayerControl.LocalPlayer.GetModifierComponent().ActiveModifiers]);
}
/// <summary>
/// Use this to toggle the visibility of the modifiers tab.
/// </summary>
public void ToggleTab()
{
IsOpen = !IsOpen;
_children.gameObject.SetActive(IsOpen);
RefreshModifiers();
}
internal void DestroyComponent(ModifierUiComponent component)
{
_modifiers.Remove(component.Modifier!);