TownUI.uxml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
  2. <Style src="project://database/Assets/UI/TownUI.uss?fileID=7433441132597879392&amp;guid=f1e9910cf9c584544b8fe7ed144173e5&amp;type=3#TownUI" />
  3. <!-- Main Town Container -->
  4. <ui:VisualElement name="TownContainer" style="width: 100%; height: 100%; background-color: rgb(101, 67, 33);">
  5. <!-- Header Section -->
  6. <ui:VisualElement name="TownHeader" class="town-header">
  7. <ui:Label name="TownNameLabel" text="Haven Village" class="town-title" />
  8. <ui:VisualElement name="HeaderControls" class="header-controls">
  9. <ui:Button name="MapButton" text="Return to Map" class="header-button" />
  10. <ui:Button name="InventoryButton" text="Team Inventory" class="header-button" />
  11. </ui:VisualElement>
  12. </ui:VisualElement>
  13. <!-- Medieval Town Layout -->
  14. <ui:VisualElement name="TownGrid" class="town-grid">
  15. <!-- Outer Town Wall (Top) -->
  16. <ui:VisualElement name="TownWallTop" class="town-wall-horizontal" />
  17. <!-- Upper District -->
  18. <ui:VisualElement name="UpperDistrict" class="town-district">
  19. <!-- Castle/Manor Quarter -->
  20. <ui:VisualElement name="CastleQuarter" class="town-building castle">
  21. <ui:Label text="🏰 Lord's Manor" class="building-label" />
  22. </ui:VisualElement>
  23. <!-- Noble Houses -->
  24. <ui:VisualElement name="NobleHouse1" class="town-building noble-house">
  25. <ui:Label text="🏛️ Noble House" class="building-label" />
  26. </ui:VisualElement>
  27. <!-- Adventurer's Guild -->
  28. <ui:VisualElement name="AdventurersGuild" class="town-building town-special guild interactable-building">
  29. <ui:Label text="⚔️ Adventurer's Guild" class="building-label" />
  30. <ui:VisualElement class="interaction-banner">
  31. <ui:Label text="Click to Enter" class="banner-text" />
  32. </ui:VisualElement>
  33. </ui:VisualElement>
  34. </ui:VisualElement>
  35. <!-- Main Street (Horizontal) -->
  36. <ui:VisualElement name="MainStreet" class="main-street" />
  37. <!-- Market District -->
  38. <ui:VisualElement name="MarketDistrict" class="town-district">
  39. <!-- Weapon Shop -->
  40. <ui:VisualElement name="WeaponShop" class="town-building town-shop weapon-shop interactable-building">
  41. <ui:Label text="⚔️ The Forge" name="building-name" class="building-label" />
  42. <ui:VisualElement class="shop-banner">
  43. <ui:Label text="WEAPONS" class="banner-text" />
  44. </ui:VisualElement>
  45. </ui:VisualElement>
  46. <!-- Market Square -->
  47. <ui:VisualElement name="TownSquare" class="town-square">
  48. <ui:Label text="🏛️ Market Square" class="building-label" />
  49. <ui:VisualElement name="Fountain" class="fountain" />
  50. </ui:VisualElement>
  51. <!-- Armor Shop -->
  52. <ui:VisualElement name="ArmorShop" class="town-building town-shop armor-shop interactable-building">
  53. <ui:Label text="🛡️ Ironclad Armory" name="building-name" class="building-label" />
  54. <ui:VisualElement class="shop-banner">
  55. <ui:Label text="ARMOR" class="banner-text" />
  56. </ui:VisualElement>
  57. </ui:VisualElement>
  58. <!-- Potion Shop -->
  59. <ui:VisualElement name="PotionShop" class="town-building town-shop potion-shop interactable-building">
  60. <ui:Label text="🧪 The Bubbling Cauldron" name="building-name" class="building-label" />
  61. <ui:VisualElement class="shop-banner">
  62. <ui:Label text="POTIONS" class="banner-text" />
  63. </ui:VisualElement>
  64. </ui:VisualElement>
  65. </ui:VisualElement>
  66. <!-- Side Street -->
  67. <ui:VisualElement name="SideStreet" class="side-street" />
  68. <!-- Lower District -->
  69. <ui:VisualElement name="LowerDistrict" class="town-district">
  70. <!-- General Store -->
  71. <ui:VisualElement name="GeneralStore" class="town-building town-shop general-shop interactable-building">
  72. <ui:Label text="🏪 Pete's General Goods" name="building-name" class="building-label" />
  73. <ui:VisualElement class="shop-banner">
  74. <ui:Label text="GENERAL STORE" class="banner-text" />
  75. </ui:VisualElement>
  76. </ui:VisualElement>
  77. <!-- Inn -->
  78. <ui:VisualElement name="Inn" class="town-building town-special inn interactable-building">
  79. <ui:Label text="🍺 The Wanderer's Rest" class="building-label" />
  80. <ui:VisualElement class="interaction-banner">
  81. <ui:Label text="Click to Enter" class="banner-text" />
  82. </ui:VisualElement>
  83. </ui:VisualElement>
  84. <!-- Harbor (if enabled) -->
  85. <ui:VisualElement name="Harbor" class="town-building town-special harbor interactable-building">
  86. <ui:Label text="⚓ Harbor" class="building-label" />
  87. <ui:VisualElement class="interaction-banner">
  88. <ui:Label text="Click to Enter" class="banner-text" />
  89. </ui:VisualElement>
  90. </ui:VisualElement>
  91. <!-- Common Houses -->
  92. <ui:VisualElement name="House1" class="town-building town-house">
  93. <ui:Label text="🏠 House" class="building-label" />
  94. </ui:VisualElement>
  95. </ui:VisualElement>
  96. <!-- Outer Town Wall (Bottom) -->
  97. <ui:VisualElement name="TownWallBottom" class="town-wall-horizontal" />
  98. </ui:VisualElement>
  99. <!-- Bottom UI Panel -->
  100. <ui:VisualElement name="BottomPanel" class="bottom-panel">
  101. <ui:Label name="InteractionHint" text="Click on buildings with banners to interact with them" class="interaction-hint" />
  102. <ui:VisualElement name="MoneyDisplay" class="money-display">
  103. <ui:Label text="Party Funds:" class="money-label" />
  104. <ui:Label name="MoneyAmount" text="100g 50s 25c" class="money-amount" />
  105. </ui:VisualElement>
  106. </ui:VisualElement>
  107. </ui:VisualElement>
  108. </ui:UXML>