@@ -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