Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit ebdce70

Browse files
committed
Move instructions
1 parent 7c0b374 commit ebdce70

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/UI/Panels/FreeCamPanel.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -124,18 +124,6 @@ internal static void UpdatePositionInput()
124124

125125
protected override void ConstructPanelContent()
126126
{
127-
string instructions = @"Controls:
128-
- WASD/Arrows: Movement
129-
- Space/PgUp: Move up
130-
- LeftControl/PgDown: Move down
131-
- Right Mouse Button: Free look
132-
- Left Shift: Super speed";
133-
134-
Text instructionsText = UIFactory.CreateLabel(ContentRoot, "Instructions", instructions, TextAnchor.UpperLeft);
135-
UIFactory.SetLayoutElement(instructionsText.gameObject, flexibleWidth: 9999, flexibleHeight: 9999);
136-
137-
AddSpacer(5);
138-
139127
startStopButton = UIFactory.CreateButton(ContentRoot, "ToggleButton", "Freecam");
140128
UIFactory.SetLayoutElement(startStopButton.GameObject, minWidth: 150, minHeight: 25, flexibleWidth: 9999);
141129
startStopButton.OnClick += ToggleButton_OnClick;
@@ -152,6 +140,18 @@ protected override void ConstructPanelContent()
152140

153141
AddSpacer(5);
154142

143+
string instructions = @"Controls:
144+
- WASD/Arrows: Movement
145+
- Space/PgUp: Move up
146+
- LeftControl/PgDown: Move down
147+
- Right Mouse Button: Free look
148+
- Left Shift: Super speed";
149+
150+
Text instructionsText = UIFactory.CreateLabel(ContentRoot, "Instructions", instructions, TextAnchor.UpperLeft);
151+
UIFactory.SetLayoutElement(instructionsText.gameObject, flexibleWidth: 9999, flexibleHeight: 9999);
152+
153+
AddSpacer(5);
154+
155155
inspectButton = UIFactory.CreateButton(ContentRoot, "InspectButton", "Inspect Free Camera");
156156
UIFactory.SetLayoutElement(inspectButton.GameObject, flexibleWidth: 9999, minHeight: 25);
157157
inspectButton.OnClick += () => { InspectorManager.Inspect(ourCamera); };

0 commit comments

Comments
 (0)