Skip to content

Commit

Permalink
ui toolkit added
Browse files Browse the repository at this point in the history
  • Loading branch information
vyshnovka committed Jan 31, 2024
1 parent 9ef04cb commit c64c15b
Show file tree
Hide file tree
Showing 10 changed files with 139 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Assets/UI Toolkit.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions Assets/UI Toolkit/CommonStyleSheet.uss
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.smallContainer {
width: 80%;
height: 20%;
margin-left: 10%;
margin-right: 10%;
align-items: center;
justify-content: center;
}

.dropdownBox {
}

.radioButton {
width: 25%;
align-items: center;
justify-content: center;
flex-direction: column;
-unity-text-align: upper-center;
height: 70px;
}

.radioButtonVisual {
width: 10%;
height: 10%;
}

.textSmall {
font-size: 15px;
color: rgba(255, 255, 255, 255);
}
11 changes: 11 additions & 0 deletions Assets/UI Toolkit/CommonStyleSheet.uss.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions Assets/UI Toolkit/CommonUI.uxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
<Style src="project://database/Assets/UI%20Toolkit/CommonStyleSheet.uss?fileID=7433441132597879392&amp;guid=0b73cfd64f1704244a899986b93448f2&amp;type=3#CommonStyleSheet" />
<ui:VisualElement name="Container" style="width: 100%; height: 100%; flex-direction: row; justify-content: space-between;">
<ui:VisualElement name="Settings" style="width: 30%; height: 35%; background-color: rgba(255, 255, 255, 0.04); justify-content: space-around; align-items: center; color: rgba(123, 123, 123, 0.54); background-image: url(&apos;project://database/Assets/Images/White.png?fileID=21300000&amp;guid=9bce4995469076848b32d0fdf6220e69&amp;type=3#White&apos;); -unity-background-image-tint-color: rgba(255, 255, 255, 0.04);">
<ui:DropdownField label="Algorithm Type" index="-1" choices="System.Collections.Generic.List`1[System.String]" name="AlgorithmDropdown" class="dropdownBox textSmall smallContainer" style="align-items: center; justify-content: center;" />
<ui:DropdownField label="Terrain Size" index="-1" choices="System.Collections.Generic.List`1[System.String]" name="SizeDropdown" class="dropdownBox textSmall smallContainer" />
<ui:GroupBox name="GradientGroupBox" class="smallContainer textSmall" style="flex-direction: row; margin-top: 0; margin-bottom: 0; padding-left: 0; padding-top: 0; padding-bottom: 0;">
<ui:RadioButton label="Grayscale" name="GrayscaleRadio" value="true" class="radioButton textSmall" />
<ui:RadioButton label="Mountains" name="MountainsRadio" value="false" class="radioButton textSmall" />
<ui:RadioButton label="Water" name="WaterRadio" value="false" class="radioButton textSmall" />
</ui:GroupBox>
<ui:Button text="GENERATE" display-tooltip-when-elided="true" name="Generate" class="textSmall" style="margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0; padding-left: 0; padding-right: 0; padding-top: 0; padding-bottom: 0; width: 40%; height: 15%;" />
</ui:VisualElement>
</ui:VisualElement>
</ui:UXML>
10 changes: 10 additions & 0 deletions Assets/UI Toolkit/CommonUI.uxml.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions Assets/UI Toolkit/PanelSettings.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 19101, guid: 0000000000000000e000000000000000, type: 0}
m_Name: PanelSettings
m_EditorClassIdentifier:
themeUss: {fileID: -4733365628477956816, guid: 1e7c336d0d079664dab7ccce23063478, type: 3}
m_TargetTexture: {fileID: 0}
m_ScaleMode: 1
m_Scale: 1
m_ReferenceDpi: 96
m_FallbackDpi: 96
m_ReferenceResolution: {x: 1200, y: 800}
m_ScreenMatchMode: 0
m_Match: 0
m_SortingOrder: 0
m_TargetDisplay: 0
m_ClearDepthStencil: 1
m_ClearColor: 0
m_ColorClearValue: {r: 0, g: 0, b: 0, a: 0}
m_DynamicAtlasSettings:
m_MinAtlasSize: 64
m_MaxAtlasSize: 4096
m_MaxSubTextureSize: 64
m_ActiveFilters: 31
m_AtlasBlitShader: {fileID: 9101, guid: 0000000000000000f000000000000000, type: 0}
m_RuntimeShader: {fileID: 9100, guid: 0000000000000000f000000000000000, type: 0}
m_RuntimeWorldShader: {fileID: 9102, guid: 0000000000000000f000000000000000, type: 0}
textSettings: {fileID: 0}
8 changes: 8 additions & 0 deletions Assets/UI Toolkit/PanelSettings.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/UI Toolkit/UnityThemes.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Assets/UI Toolkit/UnityThemes/UnityDefaultRuntimeTheme.tss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import url("unity-theme://default");
11 changes: 11 additions & 0 deletions Assets/UI Toolkit/UnityThemes/UnityDefaultRuntimeTheme.tss.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c64c15b

Please sign in to comment.