AssetArtScannerWindow.uxml 4.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="True">
  2. <uie:Toolbar name="Toolbar" style="display: flex; flex-direction: row-reverse;">
  3. <ui:Button text="Save" display-tooltip-when-elided="true" name="SaveButton" style="width: 50px; background-color: rgb(56, 147, 58);" />
  4. <ui:Button text="Export" display-tooltip-when-elided="true" name="ExportButton" style="width: 50px; background-color: rgb(56, 147, 58);" />
  5. <ui:Button text="Import" display-tooltip-when-elided="true" name="ImportButton" style="width: 50px; background-color: rgb(56, 147, 58);" />
  6. <ui:Button text="Scan All" display-tooltip-when-elided="true" name="ScanAllButton" style="width: 80px; background-color: rgb(56, 147, 58);" />
  7. </uie:Toolbar>
  8. <ui:VisualElement name="ContentContainer" style="flex-grow: 1; flex-direction: row;">
  9. <ui:VisualElement name="ScannerListContainer" style="width: 250px; flex-grow: 0; background-color: rgb(67, 67, 67); border-left-width: 5px; border-right-width: 5px; border-top-width: 5px; border-bottom-width: 5px;">
  10. <ui:Label text="Scanner List" display-tooltip-when-elided="true" name="ScannerListTitle" style="background-color: rgb(89, 89, 89); -unity-text-align: upper-center; -unity-font-style: bold; border-left-width: 3px; border-right-width: 3px; border-top-width: 3px; border-bottom-width: 3px; font-size: 12px;" />
  11. <uie:ToolbarSearchField focusable="true" name="ScannerSearchField" style="width: 230px;" />
  12. <ui:ListView focusable="true" name="ScannerListView" item-height="20" virtualization-method="DynamicHeight" reorder-mode="Animated" reorderable="true" style="flex-grow: 1;" />
  13. <ui:VisualElement name="ScannerAddContainer" style="justify-content: center; flex-direction: row; flex-shrink: 0;">
  14. <ui:Button text=" - " display-tooltip-when-elided="true" name="RemoveBtn" />
  15. <ui:Button text=" + " display-tooltip-when-elided="true" name="AddBtn" />
  16. </ui:VisualElement>
  17. </ui:VisualElement>
  18. <ui:VisualElement name="ScannerContentContainer" style="flex-grow: 1; border-left-width: 5px; border-right-width: 5px; border-top-width: 5px; border-bottom-width: 5px; min-width: 400px;">
  19. <ui:Label text="Scanner" display-tooltip-when-elided="true" name="ScannerContentTitle" style="-unity-text-align: upper-center; -unity-font-style: bold; font-size: 12px; border-top-width: 3px; border-right-width: 3px; border-bottom-width: 3px; border-left-width: 3px; background-color: rgb(89, 89, 89);" />
  20. <ui:Label display-tooltip-when-elided="true" name="SchemaUserGuide" style="-unity-text-align: upper-center; -unity-font-style: bold; border-left-width: 5px; border-right-width: 5px; border-top-width: 5px; border-bottom-width: 5px; font-size: 12px; height: 40px;" />
  21. <ui:TextField picking-mode="Ignore" label="Scanner Name" name="ScannerName" />
  22. <ui:TextField picking-mode="Ignore" label="Scanner Desc" name="ScannerDesc" />
  23. <uie:ObjectField label="Scanner Schema" name="ScanSchema" type="YooAsset.Editor.ScannerSchema, YooAsset.Editor" allow-scene-objects="false" />
  24. <uie:ObjectField label="Output Folder" name="OutputFolder" type="UnityEditor.DefaultAsset, UnityEditor.CoreModule" allow-scene-objects="false" />
  25. <ui:VisualElement name="CollectorAddContainer" style="height: 20px; flex-direction: row-reverse;">
  26. <ui:Button text="[ + ]" display-tooltip-when-elided="true" name="AddBtn" />
  27. <ui:Button text="Scan" display-tooltip-when-elided="true" name="ScanBtn" style="width: 60px;" />
  28. </ui:VisualElement>
  29. <ui:ScrollView name="CollectorScrollView" style="flex-grow: 1;" />
  30. </ui:VisualElement>
  31. <ui:VisualElement name="InspectorContainer" style="flex-grow: 1; border-top-width: 5px; border-right-width: 5px; border-bottom-width: 5px; border-left-width: 5px; background-color: rgb(67, 67, 67);" />
  32. </ui:VisualElement>
  33. </ui:UXML>