Update showbb command (#4710)

This commit is contained in:
metalgearsloth
2021-10-03 17:58:19 +11:00
committed by GitHub
parent 61f1c8a05c
commit 3a202989dc

View File

@@ -88,7 +88,7 @@ namespace Content.Client.Sandbox
ShowMarkersButton = new Button { Text = Loc.GetString("sandbox-window-show-spawns-button"), ToggleMode = true, Pressed = EntitySystem.Get<MarkerSystem>().MarkersVisible }; ShowMarkersButton = new Button { Text = Loc.GetString("sandbox-window-show-spawns-button"), ToggleMode = true, Pressed = EntitySystem.Get<MarkerSystem>().MarkersVisible };
vBox.AddChild(ShowMarkersButton); vBox.AddChild(ShowMarkersButton);
ShowBbButton = new Button { Text = Loc.GetString("sandbox-window-show-bb-button"), ToggleMode = true, Pressed = IoCManager.Resolve<IDebugDrawing>().DebugColliders }; ShowBbButton = new Button { Text = Loc.GetString("sandbox-window-show-bb-button"), ToggleMode = true, Pressed = (EntitySystem.Get<DebugPhysicsSystem>().Flags & PhysicsDebugFlags.Shapes) != 0x0 };
vBox.AddChild(ShowBbButton); vBox.AddChild(ShowBbButton);
MachineLinkingButton = new Button { Text = Loc.GetString("sandbox-window-link-machines-button"), ToggleMode = true }; MachineLinkingButton = new Button { Text = Loc.GetString("sandbox-window-link-machines-button"), ToggleMode = true };
@@ -354,7 +354,7 @@ namespace Content.Client.Sandbox
private void ShowBb() private void ShowBb()
{ {
_consoleHost.ExecuteCommand("showbb"); _consoleHost.ExecuteCommand("physics shapes");
} }
private void LinkMachines() private void LinkMachines()