Convert ghost toggle button into an action (#12658)
* Convert ghost toggle button into an action * figs
This commit is contained in:
@@ -99,7 +99,6 @@ public sealed class GhostUIController : UIController, IOnSystemChanged<GhostSyst
|
||||
Gui.RequestWarpsPressed += RequestWarps;
|
||||
Gui.ReturnToBodyPressed += ReturnToBody;
|
||||
Gui.GhostRolesPressed += GhostRolesPressed;
|
||||
Gui.ToggleGhostVisibility += ToggleGhostVisibility;
|
||||
Gui.TargetWindow.WarpClicked += OnWarpClicked;
|
||||
|
||||
UpdateGui();
|
||||
@@ -113,7 +112,6 @@ 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();
|
||||
@@ -135,9 +133,4 @@ public sealed class GhostUIController : UIController, IOnSystemChanged<GhostSyst
|
||||
{
|
||||
_system?.OpenGhostRoles();
|
||||
}
|
||||
|
||||
private void ToggleGhostVisibility()
|
||||
{
|
||||
_system?.ToggleGhostVisibility();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user