icons build n shit
This commit is contained in:
1 parent
f58bf57c90
commit
db2b6a4b34
29 files changed
+462
-24
No files matched your search
@@ -23,3 +23,7 @@ Button {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#body {
|
||||
padding: 24px;
|
||||
}
|
||||
@@ -2,9 +2,8 @@
|
||||
<Style src="project://database/Assets/Src/UI/Menu.uss?fileID=7433441132597879392&guid=144cc2c04c975bad88fb864cea91f099&type=3#Menu" />
|
||||
<Style src="project://database/Assets/Src/UI/Global.uss?fileID=7433441132597879392&guid=000591923dc977463bf0fd9f4e7d463e&type=3#Global" />
|
||||
<ui:VisualElement name="main" class="nav" style="flex-grow: 1;">
|
||||
<ui:VisualElement name="logo" style="-unity-background-scale-mode: scale-to-fit; background-image: url('project://database/Assets/Images/SpaceRace.Logo.png?fileID=2800000&guid=ae2be62fce183734f8c152bdb637d3b1&type=3#SpaceRace.Logo'); margin-left: 24px;" />
|
||||
<ui:VisualElement name="body" style="flex-direction: row; height: 100%;">
|
||||
<ui:VisualElement name="left" style="flex-grow: 0; flex-basis: 50%;">
|
||||
<ui:VisualElement name="left" style="flex-grow: 0; flex-basis: 50%; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0;">
|
||||
<ui:VisualElement name="tracksCtr" style="flex-grow: 1; background-color: rgba(0, 0, 0, 0);">
|
||||
<ui:Label text="TRACK" display-tooltip-when-elided="true" name="Track" style="-unity-font: url('project://database/Assets/UI%20Toolkit/Fonts/Jura-DemiBold.otf?fileID=12800000&guid=1d103e83da4f14189b3e8b0b865eca3d&type=3#Jura-DemiBold'); -unity-font-style: bold;" />
|
||||
<ui:VisualElement name="tracks">
|
||||
@@ -13,11 +12,15 @@
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name="settings" style="flex-grow: 1; flex-direction: column; display: flex; visibility: visible;">
|
||||
<ui:Label tabindex="-1" text="SETTINGS" display-tooltip-when-elided="true" style="-unity-font-style: bold; align-items: auto;" />
|
||||
<ui:Label tabindex="-1" text="CONTROLS" display-tooltip-when-elided="true" style="-unity-font-style: bold; align-items: auto;" />
|
||||
<ui:Slider label="View Sensitivity" value="1" high-value="3" name="viewSens" low-value="0.1" show-input-field="false" style="width: 100%;" />
|
||||
<ui:Label tabindex="-1" text="Label" display-tooltip-when-elided="true" name="viewSensLabel" style="-unity-text-align: upper-right; align-self: flex-end;" />
|
||||
<ui:Toggle label="Invert Y" name="invertY" tooltip="Invert Y Axis Controls" value="false" />
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name="SoonTM" style="flex-grow: 1; flex-direction: column; display: flex; visibility: visible;">
|
||||
<ui:Label tabindex="-1" text="AUDIO" display-tooltip-when-elided="true" style="-unity-font-style: bold; align-items: auto;" />
|
||||
<ui:Label tabindex="-1" text="Coming soon!" parse-escape-sequences="true" display-tooltip-when-elided="true" />
|
||||
</ui:VisualElement>
|
||||
<ui:Button text="EXIT" display-tooltip-when-elided="true" name="exit" tabindex="2" class="exit" />
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name="right" style="background-image: url('project://database/Assets/Images/Controls.HUD.png?fileID=2800000&guid=16a9df7a449918546a5000d9830d1e2a&type=3#Controls.HUD'); flex-grow: 1; -unity-background-scale-mode: scale-to-fit;" />
|
||||
|
||||
@@ -10,6 +10,8 @@ public class MenuUI : MonoBehaviour {
|
||||
|
||||
Button exit;
|
||||
|
||||
bool HideExitButton => Application.platform == RuntimePlatform.XboxOne || Application.isEditor;
|
||||
|
||||
void OnEnable() {
|
||||
uiDocument = GetComponent<UIDocument>();
|
||||
}
|
||||
@@ -45,6 +47,12 @@ public class MenuUI : MonoBehaviour {
|
||||
|
||||
void SetupExit() {
|
||||
exit = uiDocument.rootVisualElement.Q<Button>("exit");
|
||||
|
||||
if (HideExitButton) {
|
||||
exit.style.display = DisplayStyle.None;
|
||||
return;
|
||||
}
|
||||
|
||||
exit.clicked += Exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<ui:Label tabindex="-1" text="Decelerate" parse-escape-sequences="true" display-tooltip-when-elided="true" style="-unity-text-align: upper-left;" />
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name="strafeCtr" style="flex-grow: 0; background-color: rgba(0, 0, 0, 0);">
|
||||
<InterfaceIcon icon="Strafing" class="interfaceIcon" style="-unity-text-align: upper-center; -unity-font-style: normal;" />
|
||||
<InterfaceIcon icon="Strafe" class="interfaceIcon" style="-unity-text-align: upper-center; -unity-font-style: normal;" />
|
||||
<ui:Label tabindex="-1" text="Strafe" parse-escape-sequences="true" display-tooltip-when-elided="true" />
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name="shieldCtr" style="flex-grow: 0; background-color: rgba(0, 0, 0, 0);">
|
||||
|
||||
Reference in new issue
Block a user