AdvancedTravelOptions.uxml 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
  2. <Style src="project://database/Assets/Resources/UI/MapScene/AdvancedTravelOptions.uss?fileID=7433441132597879392&amp;guid=96a7a9808461ae64c8a0e47d64f8779c&amp;type=3#AdvancedTravelOptions" />
  3. <ui:VisualElement name="advanced-travel-container" style="position: absolute; top: 100px; left: 300px; width: 500px; height: 400px; background-color: rgba(240, 240, 240, 0.95); border-width: 2px; border-color: rgb(100, 100, 100); padding: 20px;">
  4. <ui:VisualElement name="header-bar" style="flex-direction: row; margin-bottom: 15px;">
  5. <ui:Label text="Special Travel Options" name="travel-options-title" style="font-size: 16px; flex-grow: 1;" />
  6. <ui:Button text="X" name="close-button" style="width: 20px; height: 20px;" />
  7. </ui:VisualElement>
  8. <ui:VisualElement name="route-comparison" style="background-color: rgba(200, 200, 200, 0.5); padding: 10px; margin-bottom: 15px;">
  9. <ui:Label text="Route Comparison" style="font-size: 14px; margin-bottom: 10px;" />
  10. <ui:VisualElement style="flex-direction: row;">
  11. <ui:VisualElement style="flex: 1; margin-right: 10px;">
  12. <ui:Label text="Standard Route" style="font-size: 12px; margin-bottom: 5px;" />
  13. <ui:Label text="Distance: --" name="standard-distance" style="font-size: 11px;" />
  14. <ui:Label text="Time: --" name="standard-time" style="font-size: 11px;" />
  15. <ui:Label text="Cost: Free" name="standard-cost" style="font-size: 11px;" />
  16. </ui:VisualElement>
  17. <ui:VisualElement style="flex: 1; margin-left: 10px;">
  18. <ui:Label text="Special Route" style="font-size: 12px; margin-bottom: 5px;" />
  19. <ui:Label text="Distance: --" name="special-distance" style="font-size: 11px;" />
  20. <ui:Label text="Time: --" name="special-time" style="font-size: 11px;" />
  21. <ui:Label text="Cost: --" name="special-cost" style="font-size: 11px;" />
  22. </ui:VisualElement>
  23. </ui:VisualElement>
  24. <ui:Label text="Time Saved: --" name="time-savings" style="font-size: 12px; margin-top: 10px;" />
  25. </ui:VisualElement>
  26. <ui:VisualElement name="options-scroll" style="flex-grow: 1; margin-bottom: 15px; background-color: rgba(255, 255, 255, 0.8); padding: 10px;">
  27. <ui:Label text="Available Options:" style="font-size: 12px; margin-bottom: 8px;" />
  28. <ui:VisualElement name="options-container" style="flex-direction: column;" />
  29. </ui:VisualElement>
  30. <ui:VisualElement name="resource-status" style="background-color: rgba(220, 220, 220, 0.8); padding: 10px; margin-bottom: 15px;">
  31. <ui:Label text="Current Resources" style="font-size: 12px; margin-bottom: 8px;" />
  32. <ui:VisualElement style="flex-direction: row;">
  33. <ui:Label text="Gold: --" name="gold-label" style="font-size: 11px; flex: 1;" />
  34. <ui:Label text="Torches: --" name="torch-label" style="font-size: 11px; flex: 1;" />
  35. <ui:Label text="Status: --" name="affordability-label" style="font-size: 11px; flex: 1;" />
  36. </ui:VisualElement>
  37. </ui:VisualElement>
  38. <ui:VisualElement name="button-container" style="flex-direction: row;">
  39. <ui:Button text="Use Special Route" name="confirm-button" style="flex: 1; margin-right: 5px;" />
  40. <ui:Button text="Standard Route" name="standard-button" style="flex: 1; margin-left: 5px; margin-right: 5px;" />
  41. <ui:Button text="Cancel" name="cancel-button" style="margin-left: 5px;" />
  42. </ui:VisualElement>
  43. </ui:VisualElement>
  44. </ui:UXML>