GameUI.uxml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <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">
  2. <Style src="project://database/Assets/Resource/UI/GameUI.uss?fileID=7433441132597879392&amp;guid=6c7a7ed6d798f6e47848d569781db1ac&amp;type=3#GameUI" />
  3. <ui:VisualElement name="main-container" class="main-container">
  4. <ui:VisualElement name="top-hud" class="top-hud">
  5. <ui:VisualElement name="resources-panel" class="resources-panel">
  6. <ui:VisualElement name="resource-item" class="resource-item">
  7. <ui:VisualElement name="resource-icon wood-icon" />
  8. <ui:Label text="Wood:" class="resource-label" />
  9. <ui:Label name="wood-amount" text="0" class="resource-amount" />
  10. </ui:VisualElement>
  11. <ui:VisualElement name="resource-item" class="resource-item">
  12. <ui:VisualElement name="resource-icon stone-icon" />
  13. <ui:Label text="Stone:" class="resource-label" />
  14. <ui:Label name="stone-amount" text="0" class="resource-amount" />
  15. </ui:VisualElement>
  16. <ui:VisualElement name="resource-item" class="resource-item">
  17. <ui:VisualElement name="resource-icon food-icon" />
  18. <ui:Label text="Food:" class="resource-label" />
  19. <ui:Label name="food-amount" text="0" class="resource-amount" />
  20. </ui:VisualElement>
  21. </ui:VisualElement>
  22. <ui:VisualElement name="time-controls" class="time-controls">
  23. <ui:Label name="time-speed" text="1x" class="time-speed-label" />
  24. <ui:Button name="pause-button" text="Pause" class="time-button" />
  25. <ui:Button name="speed-1x" text="1x" class="time-button" />
  26. <ui:Button name="speed-2x" text="2x" class="time-button" />
  27. <ui:Button name="speed-10x" text="10x" class="time-button" />
  28. </ui:VisualElement>
  29. </ui:VisualElement>
  30. <ui:VisualElement name="side-panel" class="side-panel">
  31. <ui:VisualElement name="selection-panel" class="info-panel">
  32. <ui:Label text="Selection Info" class="panel-title" />
  33. <ui:Label name="selection-info" text="Nothing selected" class="info-text" />
  34. </ui:VisualElement>
  35. <ui:VisualElement name="villager-panel" class="info-panel">
  36. <ui:Label text="Villager Management" class="panel-title" />
  37. <ui:Label name="villager-info" text="No villager selected" class="info-text" />
  38. <ui:VisualElement name="job-buttons" class="job-buttons-container" />
  39. </ui:VisualElement>
  40. <ui:VisualElement name="instructions-panel" class="info-panel">
  41. <ui:Label text="Controls" class="panel-title" />
  42. <ui:Label text="WASD/Arrows: Move camera&#10;Mouse Wheel: Zoom&#10;Left Click: Select&#10;Right Click: Cancel&#10;Drag villager to assign job&#10;Space: Pause/Resume&#10;1/2/3: Change speed" class="info-text small-text" />
  43. </ui:VisualElement>
  44. </ui:VisualElement>
  45. <ui:VisualElement name="bottom-hud" class="bottom-hud">
  46. <ui:Label name="status-text" text="Welcome to Gatherer of Souls!" class="status-text" />
  47. </ui:VisualElement>
  48. </ui:VisualElement>
  49. </ui:UXML>