Move instructions

This commit is contained in:
Sinai 2022-04-19 01:22:25 +10:00
parent 7c0b37440b
commit ebdce70418

View File

@ -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); };