Files
BABA_YAGA/Assets/UI/Documents/MainGameHUD.uxml
Lucastaa 966642bdcd update
2026-04-26 00:27:56 +07:00

34 lines
2.7 KiB
Plaintext

<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xsi="http://www.w3.org/2001/XMLSchema-instance" engine="UnityEngine.UIElements" editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
<Style src="project:/Assets/UI/Styles/Global.uss" />
<ui:VisualElement style="flex-grow: 1; justify-content: flex-end; padding: 40px;">
<!-- Top Right: Actions -->
<ui:VisualElement style="position: absolute; top: 40px; right: 40px; align-items: flex-end;">
<ui:Button name="btn-toggle-view" text="TOGGLE VIEW (F2)" class="button-primary" style="font-size: 12px; padding: 10px;" />
<ui:Label text="Hold [ALT] to use cursor" style="color: rgba(255,255,255,0.6); font-size: 10px; margin-top: 5px; -unity-font-style: italic;" />
</ui:VisualElement>
<!-- Top Left: Stats -->
<ui:VisualElement style="position: absolute; top: 40px; left: 40px; background-color: rgba(0,0,0,0.5); padding: 15px; border-radius: 5px;">
<ui:Label name="health-text" text="HEALTH: 100/100" style="color: #ff4d4d; -unity-font-style: bold; margin-bottom: 5px;" />
<ui:VisualElement name="health-bar-bg" style="width: 200px; height: 12px; background-color: #333; border-radius: 3px; overflow: hidden; margin-bottom: 10px;">
<ui:VisualElement name="health-fill" style="width: 100%; height: 100%; background-color: #ff4d4d;" />
</ui:VisualElement>
<ui:Label text="STAMINA" style="color: #4da6ff; font-size: 12px; -unity-font-style: bold; margin-bottom: 3px;" />
<ui:VisualElement name="stamina-bar-bg" style="width: 150px; height: 8px; background-color: #333; border-radius: 2px; overflow: hidden;">
<ui:VisualElement name="stamina-fill" style="width: 100%; height: 100%; background-color: #4da6ff;" />
</ui:VisualElement>
</ui:VisualElement>
<!-- Center: Interaction Prompt -->
<ui:VisualElement name="interaction-prompt" style="align-self: center; margin-bottom: 150px; background-color: rgba(0,0,0,0.6); padding: 10px 20px; border-radius: 20px; border-width: 1px; border-color: white; display: none;">
<ui:Label name="interaction-text" text="Press [E] to Interact" style="color: white; font-size: 20px; -unity-text-align: middle-center;" />
</ui:VisualElement>
<!-- Bottom Center: Info -->
<ui:VisualElement style="align-self: center; background-color: rgba(0,0,0,0.3); padding: 5px 15px; border-radius: 10px;">
<ui:Label name="noise-label" text="NOISE: 0%" style="color: #00ff00; font-size: 14px; -unity-font-style: bold;" />
</ui:VisualElement>
</ui:VisualElement>
</ui:UXML>