diff --git a/src/UI/Panels/FreeCamPanel.cs b/src/UI/Panels/FreeCamPanel.cs index e30570f..14e9605 100644 --- a/src/UI/Panels/FreeCamPanel.cs +++ b/src/UI/Panels/FreeCamPanel.cs @@ -124,18 +124,6 @@ namespace UnityExplorer.UI.Panels protected override void ConstructPanelContent() { - string instructions = @"Controls: -- WASD/Arrows: Movement -- Space/PgUp: Move up -- LeftControl/PgDown: Move down -- Right Mouse Button: Free look -- Left Shift: Super speed"; - - Text instructionsText = UIFactory.CreateLabel(ContentRoot, "Instructions", instructions, TextAnchor.UpperLeft); - UIFactory.SetLayoutElement(instructionsText.gameObject, flexibleWidth: 9999, flexibleHeight: 9999); - - AddSpacer(5); - startStopButton = UIFactory.CreateButton(ContentRoot, "ToggleButton", "Freecam"); UIFactory.SetLayoutElement(startStopButton.GameObject, minWidth: 150, minHeight: 25, flexibleWidth: 9999); startStopButton.OnClick += ToggleButton_OnClick; @@ -152,6 +140,18 @@ namespace UnityExplorer.UI.Panels AddSpacer(5); + string instructions = @"Controls: +- WASD/Arrows: Movement +- Space/PgUp: Move up +- LeftControl/PgDown: Move down +- Right Mouse Button: Free look +- Left Shift: Super speed"; + + Text instructionsText = UIFactory.CreateLabel(ContentRoot, "Instructions", instructions, TextAnchor.UpperLeft); + UIFactory.SetLayoutElement(instructionsText.gameObject, flexibleWidth: 9999, flexibleHeight: 9999); + + AddSpacer(5); + inspectButton = UIFactory.CreateButton(ContentRoot, "InspectButton", "Inspect Free Camera"); UIFactory.SetLayoutElement(inspectButton.GameObject, flexibleWidth: 9999, minHeight: 25); inspectButton.OnClick += () => { InspectorManager.Inspect(ourCamera); };