Convert ghost toggle button into an action (#12658)

* Convert ghost toggle button into an action

* figs
This commit is contained in:
Kara
2022-11-18 16:30:53 -06:00
committed by GitHub
parent f12eb55153
commit c71850a53f
8 changed files with 28 additions and 14 deletions

View File

@@ -14,7 +14,6 @@ public sealed partial class GhostGui : UIWidget
public event Action? RequestWarpsPressed;
public event Action? ReturnToBodyPressed;
public event Action? GhostRolesPressed;
public event Action? ToggleGhostVisibility;
public GhostGui()
{
@@ -27,7 +26,6 @@ public sealed partial class GhostGui : UIWidget
GhostWarpButton.OnPressed += _ => RequestWarpsPressed?.Invoke();
ReturnToBodyButton.OnPressed += _ => ReturnToBodyPressed?.Invoke();
GhostRolesButton.OnPressed += _ => GhostRolesPressed?.Invoke();
ToggleGhostVisibilityButton.OnPressed += _ => ToggleGhostVisibility?.Invoke();
}
public void Hide()