Add UI toolkit hud

This commit is contained in:
2024-09-16 08:03:55 +03:00
parent 6f033bf022
commit 4424e8255e
15 changed files with 727 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
.panel {
-unity-background-image-tint-color: rgba(2, 2, 2, 0.64);
background-color: rgba(0, 0, 0, 0.75);
align-items: auto;
height: 100px;
}
+11
View File
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b1b33e86ffa27d840968609d368bc1ac
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
disableValidation: 0
+6
View File
@@ -0,0 +1,6 @@
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
<Style src="project://database/Assets/UI/inGameGud.uss?fileID=7433441132597879392&amp;guid=b1b33e86ffa27d840968609d368bc1ac&amp;type=3#inGameGud" />
<ui:VisualElement class="panel" style="flex-grow: 1; height: 50px; margin-bottom: 0; align-self: auto; justify-content: space-between; align-items: auto; max-height: 50px;">
<ui:VisualElement name="CharacterImage" style="flex-grow: 1; align-items: auto; align-self: flex-start; background-image: url(&quot;project://database/Assets/Characters/pics/Sophie.png?fileID=2800000&amp;guid=4999eb6bfdcacae48a7ed2020bd489d0&amp;type=3#Sophie&quot;); background-color: rgba(255, 255, 255, 0); justify-content: flex-end; max-width: none; width: 43px;" />
</ui:VisualElement>
</ui:UXML>
+10
View File
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: f56df0e5e8c60e241a519804b41d2e2d
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}