mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-15 13:57:31 +08:00
Move instructions
This commit is contained in:
parent
7c0b37440b
commit
ebdce70418
@ -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); };
|
||||
|
Loading…
x
Reference in New Issue
Block a user