1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?xml version="1.0" encoding="utf-8"?>
- <UXML xmlns:ui="UnityEngine.UIElements" xmlns:eui="UnityEditor.UIElements" xmlns:aui="UnityEditor.U2D.Sprites.SpriteEditorTool">
- <aui:SpriteOutlineToolOverlayPanel name="SpriteOutlineToolOverlayPanel" picking-mode="Ignore">
- <ui:PopupWindow name = "spriteOutlineTool" text = "Outline Tool">
- <ui:VisualElement name="Content">
- <ui:VisualElement class="form-row">
- <ui:VisualElement class="form-editor">
- <ui:Slider name="OutlineDetailSlider" class="named-slider" direction="Horizontal" low-value="0" high-value="1" label="Outline Detail" tooltip="Accuracy of the generated outline. Small values will produce simpler outlines. Large values will produce denser outlines that fit to the Sprite better." />
- <eui:FloatField name="OutlineDetailField" class="slider-field" value="0" />
- </ui:VisualElement>
- </ui:VisualElement>
- <ui:VisualElement class="form-row">
- <ui:VisualElement class="form-editor">
- <ui:SliderInt name="AlphaToleranceSlider" class="named-slider" direction="Horizontal" low-value="0" high-value="254" label="Alpha Tolerance" tooltip="Pixels with alpha value smaller than tolerance will be considered transparent during outline detection." />
- <eui:IntegerField name="AlphaToleranceField" class="slider-field" value="0" />
- </ui:VisualElement>
- </ui:VisualElement>
- <ui:VisualElement class="form-row">
- <ui:Label name="Snap" tooltip="Snap points to nearest pixel." text="Snap" class = "toggle-label"/>
- <ui:Toggle name="SnapToggle" class="form-editor" value="true"/>
- </ui:VisualElement>
- <ui:VisualElement class="form-row" name ="OptimizeOutlineGroup" style="visibility:Hidden">
- <ui:Label name="OptimizeOutline" tooltip="Initialize weights automatically for the generated geometry" text="Optimize Outline" />
- <ui:Toggle name="OptimizeOutlineToggle" class="form-editor" value="true" />
- </ui:VisualElement>
-
- <ui:VisualElement name="GenerateRow" class="form-row">
- <ui:Button name="GenerateButton" text="Generate For Selected" tooltip="Generate new outline based on mesh detail value. If no SpriteRect is selected, it will generate outlines for all the Sprites that does not have a custom outline."/>
- <ui:Toggle name="ForceGenerateToggle" tooltip="Regenerate outline even if the Sprite/s already have one." />
- </ui:VisualElement>
- <ui:VisualElement name="CopyPasteRow" class="form-row">
- <ui:Button name="CopyButton" text="Copy" tooltip="Copy outline from Sprite"/>
- <ui:Button name="PasteButton" text="Paste" tooltip="Paste outline to Sprite"/>
- <ui:Button name="PasteAllButton" text="Paste All" tooltip="Paste outline to all Sprites"/>
- </ui:VisualElement>
- <ui:VisualElement name="PasteAlternateRow" class="form-row">
- <ui:Label name="PasteAlternateLabel"/>
- <ui:Button name="PasteAlternateButton" text="Paste" tooltip="Paste outline to Sprite"/>
- <ui:Button name="PasteAlternateAllButton" text="Paste All" tooltip="Paste outline to all Sprites"/>
- </ui:VisualElement>
- </ui:VisualElement>
- </ui:PopupWindow>
- </aui:SpriteOutlineToolOverlayPanel>
- </UXML>
|