mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-25 22:46:45 +00:00
Modifier display improvement
This commit is contained in:
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!);
|
||||
|
||||
Reference in new issue
Block a user