GameUI.uxml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. <!-- Build Menu Panel -->
  41. <ui:VisualElement name="build-menu-panel" class="info-panel">
  42. <ui:Label text="Build Menu" class="panel-title" />
  43. <ui:Button name="build-menu-toggle" text="Open Build Menu" class="build-toggle-button" />
  44. <!-- Build Categories -->
  45. <ui:VisualElement name="build-categories" class="build-categories-container" style="display: none;">
  46. <ui:Button name="living-category" text="Living" class="category-button" />
  47. <ui:Button name="working-category" text="Working" class="category-button" />
  48. <ui:Button name="decorative-category" text="Decorative" class="category-button" />
  49. </ui:VisualElement>
  50. <!-- Build Items -->
  51. <ui:VisualElement name="build-items-container" class="build-items-container" style="display: none;">
  52. <!-- Build items will be populated dynamically -->
  53. </ui:VisualElement>
  54. </ui:VisualElement>
  55. <!-- Housing Status Panel -->
  56. <ui:VisualElement name="housing-panel" class="info-panel">
  57. <ui:Label text="Housing Status" class="panel-title" />
  58. <ui:Label name="housing-status" text="Housing: 0/0 villagers housed" class="info-text" />
  59. <ui:Label name="housing-warning" text="" class="warning-text" style="display: none;" />
  60. </ui:VisualElement>
  61. <ui:VisualElement name="instructions-panel" class="info-panel">
  62. <ui:Label text="Controls" class="panel-title" />
  63. <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" />
  64. </ui:VisualElement>
  65. </ui:VisualElement>
  66. <ui:VisualElement name="bottom-hud" class="bottom-hud">
  67. <ui:Label name="status-text" text="Welcome to Gatherer of Souls!" class="status-text" />
  68. <ui:Label name="build-mode-status" text="" class="build-mode-text" style="display: none;" />
  69. </ui:VisualElement>
  70. </ui:VisualElement>
  71. </ui:UXML>