@@ -124,18 +124,6 @@ internal static void UpdatePositionInput()
124
124
125
125
protected override void ConstructPanelContent ( )
126
126
{
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
-
139
127
startStopButton = UIFactory . CreateButton ( ContentRoot , "ToggleButton" , "Freecam" ) ;
140
128
UIFactory . SetLayoutElement ( startStopButton . GameObject , minWidth : 150 , minHeight : 25 , flexibleWidth : 9999 ) ;
141
129
startStopButton . OnClick += ToggleButton_OnClick ;
@@ -152,6 +140,18 @@ protected override void ConstructPanelContent()
152
140
153
141
AddSpacer ( 5 ) ;
154
142
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
+
155
155
inspectButton = UIFactory . CreateButton ( ContentRoot , "InspectButton" , "Inspect Free Camera" ) ;
156
156
UIFactory . SetLayoutElement ( inspectButton . GameObject , flexibleWidth : 9999 , minHeight : 25 ) ;
157
157
inspectButton . OnClick += ( ) => { InspectorManager . Inspect ( ourCamera ) ; } ;
0 commit comments