MapWithTravelUI.uxml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
  2. <Style src="project://database/Assets/UI/Map/MapLegend.uss?fileID=7433441132597879392&amp;guid=3d0abc87938a3d14c950a29cd58e78e0&amp;type=3#MapLegend" />
  3. <Style src="project://database/Assets/UI/Map/TravelUI.uss?fileID=7433441132597879392&amp;guid=1e7ef30c959791b42ae6ef3a6741c9bd&amp;type=3#TravelUI" />
  4. <ui:VisualElement name="MapLegend" enabled="true" class="legend-container" style="display: flex;">
  5. <ui:Label text="Map Legend" class="legend-title" />
  6. <ui:VisualElement class="legend-items">
  7. <ui:VisualElement class="legend-item">
  8. <ui:VisualElement class="color-box ocean-color" />
  9. <ui:Label text="Ocean / Large Water Bodies" class="legend-text" />
  10. </ui:VisualElement>
  11. <ui:VisualElement class="legend-item">
  12. <ui:VisualElement class="color-box river-color" />
  13. <ui:Label text="Rivers / Lakes" class="legend-text" />
  14. </ui:VisualElement>
  15. <ui:VisualElement class="legend-item">
  16. <ui:VisualElement class="color-box plain-color" />
  17. <ui:Label text="Plains / Grasslands" class="legend-text" />
  18. </ui:VisualElement>
  19. <ui:VisualElement class="legend-item">
  20. <ui:VisualElement class="color-box forest-color" />
  21. <ui:Label text="Forests" class="legend-text" />
  22. </ui:VisualElement>
  23. <ui:VisualElement class="legend-item">
  24. <ui:VisualElement class="color-box mountain-color" />
  25. <ui:Label text="Mountains" class="legend-text" />
  26. </ui:VisualElement>
  27. <ui:VisualElement class="legend-item">
  28. <ui:VisualElement class="color-box town-color" />
  29. <ui:Label text="Towns / Cities" class="legend-text" />
  30. </ui:VisualElement>
  31. <ui:VisualElement class="legend-item">
  32. <ui:VisualElement class="color-box village-color" />
  33. <ui:Label text="Villages" class="legend-text" />
  34. </ui:VisualElement>
  35. <ui:VisualElement class="legend-item">
  36. <ui:VisualElement class="color-box road-color" />
  37. <ui:Label text="Roads" class="legend-text" />
  38. </ui:VisualElement>
  39. <ui:VisualElement class="legend-item">
  40. <ui:VisualElement class="color-box dock-color" />
  41. <ui:Label text="Docks / Ports" class="legend-text" />
  42. </ui:VisualElement>
  43. </ui:VisualElement>
  44. <ui:VisualElement class="controls-info">
  45. <ui:Label text="Controls:" class="controls-title" />
  46. <ui:Label text="WASD / Arrow Keys: Move Camera" class="controls-text" />
  47. <ui:Label text="Mouse Wheel: Zoom In/Out" class="controls-text" />
  48. <ui:Label text="N: Toggle Name Labels" class="controls-text" />
  49. <ui:Label text="L: Toggle Legend" class="controls-text" />
  50. <ui:Label text="Mouse Hover: Show Tooltips" class="controls-text" />
  51. </ui:VisualElement>
  52. </ui:VisualElement>
  53. <ui:VisualElement name="TravelContainer" class="travel-container" style="display: flex; visibility: visible; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); justify-content: center; align-items: center; background-size: 100% 100%;">
  54. <ui:VisualElement name="TravelPanel" class="travel-panel" style="background-color: rgb(45, 45, 45); border-color: rgb(80, 80, 80); border-width: 2px; border-radius: 8px; padding: 20px; min-width: 300px; max-width: 400px; min-height: 200px; height: 450px;">
  55. <ui:VisualElement name="TravelHeader" class="travel-header" style="flex-direction: row; justify-content: space-between; align-items: center; margin-bottom: 10px; cursor: move; background-color: rgba(60, 60, 60, 0.8); margin: -20px -20px 10px -20px; padding: 10px 20px; border-top-left-radius: 6px; border-top-right-radius: 6px;">
  56. <ui:Label text="Travel Planning" class="travel-title" style="margin: 0; flex-grow: 1; color: rgb(220, 220, 220); font-size: 14px; -unity-font-style: bold;" />
  57. <ui:Button text="×" name="CloseButton" class="close-button" style="width: 24px; height: 24px; margin: 0; padding: 0; background-color: transparent; border-width: 0; color: rgb(200, 200, 200); font-size: 16px; -unity-font-style: bold;" />
  58. </ui:VisualElement>
  59. <ui:VisualElement name="TravelInfo" class="travel-info" style="flex-grow: 0; -unity-background-scale-mode: stretch-to-fill; height: 140px; background-size: 100% 100%;">
  60. <ui:Label text="Distance: -- leagues" name="DistanceLabel" class="info-label" />
  61. <ui:Label text="Travel Time: -- hours" name="TimeLabel" class="info-label" />
  62. <ui:Label text="Special Costs: None" name="SpecialCostsLabel" class="info-label special-costs" style="max-height: 64px;" />
  63. </ui:VisualElement>
  64. <ui:VisualElement name="WarningSection" class="warning-section">
  65. <ui:Label text="Insufficient funds for this journey!" name="InsufficientFundsLabel" class="insufficient-funds" style="display: none;" />
  66. </ui:VisualElement>
  67. <ui:VisualElement name="RouteOptions" class="route-options" style="height: 160px;">
  68. <ui:Label text="Route Preferences:" class="section-title" />
  69. <ui:VisualElement class="toggle-container">
  70. <ui:Toggle name="AvoidTunnelsToggle" text="Avoid Tunnels" class="route-toggle" />
  71. <ui:Toggle name="AvoidFerriesToggle" text="Avoid Ferries" class="route-toggle" />
  72. </ui:VisualElement>
  73. <ui:Button text="Find Alternative Route" name="AlternativeRouteButton" class="travel-button alternative-button" />
  74. </ui:VisualElement>
  75. <ui:VisualElement name="ButtonContainer" class="button-container">
  76. <ui:Button text="Start Journey" name="StartTravelButton" class="travel-button primary-button" />
  77. <ui:Button text="Cancel" name="CancelTravelButton" class="travel-button secondary-button" />
  78. </ui:VisualElement>
  79. </ui:VisualElement>
  80. </ui:VisualElement>
  81. </ui:UXML>