TravelUI.uxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
  2. <Style src="project://database/Assets/UI/Map/TravelUI.uss?fileID=7433441132597879392&amp;guid=1e7ef30c959791b42ae6ef3a6741c9bd&amp;type=3#TravelUI" />
  3. <ui:VisualElement name="TravelContainer" class="travel-container" style="display: none; visibility: visible;">
  4. <!-- Click-blocking overlay that covers the entire screen -->
  5. <ui:VisualElement name="ClickBlocker" class="click-blocker" />
  6. <ui:VisualElement name="TravelPanel" class="travel-panel">
  7. <!-- Draggable Header -->
  8. <ui:VisualElement name="TravelHeader" class="travel-header">
  9. <ui:Label text="Travel Planning" class="travel-title" />
  10. <ui:Button text="×" name="CloseButton" class="close-button" />
  11. </ui:VisualElement>
  12. <!-- Travel Information Section -->
  13. <ui:VisualElement name="TravelInfo" class="travel-info">
  14. <ui:Label text="Distance: -- leagues" name="DistanceLabel" class="info-label" />
  15. <ui:Label text="Travel Time: -- hours" name="TimeLabel" class="info-label" />
  16. <ui:Label text="Special Costs: None" name="SpecialCostsLabel" class="info-label special-costs" />
  17. </ui:VisualElement>
  18. <!-- Route Options Section -->
  19. <ui:VisualElement name="RouteOptions" class="route-options">
  20. <ui:Label text="Available Routes:" class="section-title" />
  21. <ui:VisualElement name="RouteList" class="route-list">
  22. <!-- Route options will be populated dynamically -->
  23. </ui:VisualElement>
  24. </ui:VisualElement>
  25. <!-- Action Buttons Section -->
  26. <ui:VisualElement name="ButtonContainer" class="button-container">
  27. <ui:Button text="Start Journey" name="StartTravelButton" class="travel-button primary-button" />
  28. <ui:Button text="Cancel" name="CancelTravelButton" class="travel-button secondary-button" />
  29. </ui:VisualElement>
  30. </ui:VisualElement>
  31. </ui:VisualElement>
  32. </ui:UXML>