Add toggle ghost visibility button to ghost GUI (#12325)
* Add toggle ghost visibility button to ghosts * Rename to toggleghosts
This commit is contained in:
@@ -99,6 +99,7 @@ public sealed class GhostUIController : UIController, IOnSystemChanged<GhostSyst
|
||||
Gui.RequestWarpsPressed += RequestWarps;
|
||||
Gui.ReturnToBodyPressed += ReturnToBody;
|
||||
Gui.GhostRolesPressed += GhostRolesPressed;
|
||||
Gui.ToggleGhostVisibility += ToggleGhostVisibility;
|
||||
Gui.TargetWindow.WarpClicked += OnWarpClicked;
|
||||
|
||||
UpdateGui();
|
||||
@@ -112,6 +113,7 @@ public sealed class GhostUIController : UIController, IOnSystemChanged<GhostSyst
|
||||
Gui.RequestWarpsPressed -= RequestWarps;
|
||||
Gui.ReturnToBodyPressed -= ReturnToBody;
|
||||
Gui.GhostRolesPressed -= GhostRolesPressed;
|
||||
Gui.ToggleGhostVisibility -= ToggleGhostVisibility;
|
||||
Gui.TargetWindow.WarpClicked -= OnWarpClicked;
|
||||
|
||||
Gui.Hide();
|
||||
@@ -133,4 +135,9 @@ public sealed class GhostUIController : UIController, IOnSystemChanged<GhostSyst
|
||||
{
|
||||
_system?.OpenGhostRoles();
|
||||
}
|
||||
|
||||
private void ToggleGhostVisibility()
|
||||
{
|
||||
_system?.ToggleGhostVisibility();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user