Updated GenerateMask helper
This commit is contained in:
@@ -1,28 +1,36 @@
|
||||
<engine:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:engine="UnityEngine.UIElements" xmlns:editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="True">
|
||||
<engine:VisualElement data-source-type="Misaki.ArtToolEditor.OutputOptionsWindow, Misaki.ArtTool.Editor" style="flex-grow: 1;">
|
||||
<engine:ScrollView>
|
||||
<engine:VisualElement name="content-on-top" />
|
||||
<engine:Foldout text="Source" style="margin-bottom: 4px;">
|
||||
<engine:ListView header-title="Source Objects" selection-type="None" allow-add="false" allow-remove="false" show-border="true" name="source-object-list" binding-source-selection-mode="AutoAssign" style="max-height: 100px;">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="itemsSource" data-source-path="_sourceObjects" binding-mode="ToTargetOnce" />
|
||||
</Bindings>
|
||||
</engine:ListView>
|
||||
</engine:Foldout>
|
||||
<engine:VisualElement name="content-after-list" />
|
||||
<engine:EnumField label="Output Directory" value="Center" type="Misaki.ArtToolEditor.OutputDirectoryType, Misaki.ArtTool.Editor" name="directory-type-enum">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="_outputDirectoryType" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:EnumField>
|
||||
<engine:TextField label="Custom Path" placeholder-text="path" name="custom-path-input" tooltip="Support absolute and relative path" style="display: none;">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="_customPath" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:TextField>
|
||||
<engine:VisualElement name="content-before-button" />
|
||||
<engine:Button text="Execute" name="output-button" />
|
||||
<engine:VisualElement name="content-on-bottom" />
|
||||
<Style src="project://database/Packages/com.misaki.art-tools/Editor/AssetsHelpers/View/OutputOptionsStyle.uss?fileID=7433441132597879392&guid=adf3dce32e0b15d408c37eb8c41df691&type=3#OutputOptionsStyle" />
|
||||
<engine:VisualElement data-source-type="Misaki.ArtToolEditor.OutputOptionsWindow, Misaki.ArtTool.Editor" style="flex-grow: 1; padding-top: 4px; padding-right: 4px; padding-bottom: 4px; padding-left: 4px;">
|
||||
<engine:ScrollView style="flex-grow: 1;">
|
||||
<engine:VisualElement style="flex-grow: 1; flex-direction: row;">
|
||||
<engine:VisualElement name="content-on-left" style="flex-grow: 1; overflow: hidden;">
|
||||
<engine:VisualElement name="content-on-top" />
|
||||
<engine:Foldout text="Source" style="margin-bottom: 4px; padding-right: 4px;">
|
||||
<engine:ListView header-title="Source Objects" selection-type="None" allow-add="false" allow-remove="false" name="source-object-list" binding-source-selection-mode="AutoAssign" style="max-height: 100px;">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="itemsSource" data-source-path="_sourceObjects" binding-mode="ToTargetOnce" />
|
||||
</Bindings>
|
||||
</engine:ListView>
|
||||
</engine:Foldout>
|
||||
<engine:VisualElement name="content-after-list" />
|
||||
<engine:EnumField label="Output Directory" value="Center" type="Misaki.ArtToolEditor.OutputDirectoryType, Misaki.ArtTool.Editor" name="directory-type-enum">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="_outputDirectoryType" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:EnumField>
|
||||
<engine:TextField label="Custom Path" placeholder-text="path" name="custom-path-input" tooltip="Support absolute and relative path" style="display: none;">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="_customPath" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:TextField>
|
||||
<engine:VisualElement name="content-before-button" />
|
||||
</engine:VisualElement>
|
||||
<engine:VisualElement name="content-on-right" style="height: 100%;" />
|
||||
</engine:VisualElement>
|
||||
</engine:ScrollView>
|
||||
<engine:VisualElement style="margin-top: 8px;">
|
||||
<engine:Button text="Output" name="output-button" class="accent-brush" />
|
||||
<engine:VisualElement name="content-on-bottom" />
|
||||
</engine:VisualElement>
|
||||
</engine:VisualElement>
|
||||
</engine:UXML>
|
||||
|
||||
Reference in New Issue
Block a user