testss
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<UXML xmlns:ui="UnityEngine.UIElements" xmlns:eui="UnityEditor.UIElements" xmlns:aui="UnityEditor.U2D.Animation">
|
||||
<aui:BoneInspectorPanel name="BoneInspectorPanel" text="Bone Inspector" picking-mode="Ignore">
|
||||
<ui:PopupWindow name="BoneInspectorPopupWindow" text="Bone">
|
||||
<ui:VisualElement name="BoneName" class="form-row">
|
||||
<ui:Label name="BoneNameLabel" text="Name" tooltip ="Name of the bone"/>
|
||||
<ui:TextField name="BoneNameField" class="form-editor" />
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name="BonePosition" class="form-row">
|
||||
<ui:Label name="BonePositionLabel" text="Position" tooltip ="Position of the bone"/>
|
||||
<eui:Vector2Field name="BonePositionField" class="form-editor"/>
|
||||
</ui:VisualElement>
|
||||
<eui:FloatField name="BoneRotationField" label = "Rotation" tooltip ="Rotation of the bone"/>
|
||||
<eui:ColorField name="BoneColorField" label = "Bone Color" show-alpha = "false" tooltip ="Color of the bone"/>
|
||||
<ui:VisualElement name="BoneDepth" class="form-row">
|
||||
<ui:Label name="BoneDepthLabel" text="Depth" tooltip ="Depth value of the bone"/>
|
||||
<eui:IntegerField name="BoneDepthField" class="form-editor" />
|
||||
</ui:VisualElement>
|
||||
</ui:PopupWindow>
|
||||
</aui:BoneInspectorPanel>
|
||||
</UXML>
|
@@ -0,0 +1,64 @@
|
||||
/**********************************************************************************************************************/
|
||||
/* BoneInspectorPanel */
|
||||
/**********************************************************************************************************************/
|
||||
|
||||
#BoneInspectorPanel {
|
||||
height : 140px;
|
||||
}
|
||||
|
||||
#BoneInspectorPanel Vector2Field FloatField > Label {
|
||||
max-width : 10px;
|
||||
}
|
||||
|
||||
#BoneInspectorPanel #BoneRotationField{
|
||||
margin-left : 0px;
|
||||
padding-left : 0px;
|
||||
}
|
||||
|
||||
#BoneInspectorPanel #BoneRotationField > FloatInput{
|
||||
flex : 6;
|
||||
margin-left : 8px;
|
||||
}
|
||||
|
||||
#BoneInspectorPanel #BoneRotationField > Label {
|
||||
margin-left : 0px;
|
||||
padding-left : 0px;
|
||||
min-width : auto;
|
||||
padding-top: 0px;
|
||||
padding-bottom:0px;
|
||||
}
|
||||
|
||||
#BoneInspectorPanel #BoneColorField{
|
||||
margin-left : 0px;
|
||||
padding-left : 0px;
|
||||
}
|
||||
|
||||
#BoneInspectorPanel #BoneColorField > IMGUIContainer{
|
||||
flex: 6 0;
|
||||
margin-left : 4px;
|
||||
padding-left : 0px;
|
||||
}
|
||||
|
||||
#BoneInspectorPanel #BoneColorField > Label {
|
||||
margin-left : 0px;
|
||||
padding-left : 0px;
|
||||
min-width : auto;
|
||||
padding-top: 0px;
|
||||
padding-bottom:0px;
|
||||
}
|
||||
|
||||
#BoneInspectorPanel Vector2Field {
|
||||
margin-right : 0px;
|
||||
padding-right : 0px;
|
||||
margin-left : 0px;
|
||||
padding-left : 0px;
|
||||
}
|
||||
|
||||
#BoneInspectorPanel #BonePositionField FloatInput {
|
||||
margin-right : 0px;
|
||||
padding-right : 0px;
|
||||
}
|
||||
|
||||
.unity-composite-field__field-spacer {
|
||||
width: 0px;
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
BoneReparentToolWindow {
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
BoneReparentToolView{
|
||||
flex : 1;
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<UXML xmlns:ui="UnityEngine.UIElements" xmlns:eui="UnityEditor.UIElements" xmlns:aui="UnityEditor.U2D.Animation">
|
||||
<aui:BoneReparentToolWindow name="BoneReparentToolWindow" picking-mode="Ignore">
|
||||
<ui:PopupWindow name="PopupWindow" text="Reparent Bones">
|
||||
<aui:BoneReparentToolView name ="BoneReparentToolView" />
|
||||
</ui:PopupWindow>
|
||||
</aui:BoneReparentToolWindow>
|
||||
</UXML>
|
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<UXML xmlns:ui="UnityEngine.UIElements" xmlns:aui="UnityEditor.U2D.Animation">
|
||||
<aui:BoneToolbar name="BoneToolbar">
|
||||
<ui:PopupWindow name="PopupWindow" text="Bones">
|
||||
<ui:Button name="EditPose" tooltip="Pose character to view setup">
|
||||
<ui:Image name="EditPoseImage" />
|
||||
<ui:Label text ="Preview Pose"/>
|
||||
</ui:Button>
|
||||
<ui:Button name="EditJoints" tooltip="Edit bones position and rotation">
|
||||
<ui:Image name="EditJointsImage" />
|
||||
<ui:Label text ="Edit Bone"/>
|
||||
</ui:Button>
|
||||
<ui:Button name="CreateBone" tooltip="Create new bones">
|
||||
<ui:Image name="CreateBoneImage" />
|
||||
<ui:Label text ="Create Bone"/>
|
||||
</ui:Button>
|
||||
<ui:Button name="SplitBone" tooltip="Split an existing bone">
|
||||
<ui:Image name="SplitBoneImage" />
|
||||
<ui:Label text ="Split Bone"/>
|
||||
</ui:Button>
|
||||
</ui:PopupWindow>
|
||||
</aui:BoneToolbar>
|
||||
</UXML>
|
@@ -0,0 +1,63 @@
|
||||
/**********************************************************************************************************************/
|
||||
/* BoneToolbar */
|
||||
/**********************************************************************************************************************/
|
||||
|
||||
#EditPoseImage {
|
||||
background-image: url("Icons/Light/Edit_Pose.png");
|
||||
}
|
||||
|
||||
#EditJointsImage {
|
||||
background-image: url("Icons/Light/Edit_Joints.png");
|
||||
}
|
||||
|
||||
#CreateBoneImage {
|
||||
background-image: url("Icons/Light/Create Bones.png");
|
||||
}
|
||||
|
||||
#SplitBoneImage {
|
||||
background-image: url("Icons/Light/Split Bones.png");
|
||||
}
|
||||
|
||||
#BoneReparentImage {
|
||||
background-image: url("Icons/Light/Parent_Bone.png");
|
||||
}
|
||||
|
||||
.Dark #EditPoseImage {
|
||||
background-image: url("Icons/Dark/d_Edit_Pose.png");
|
||||
}
|
||||
|
||||
.Dark #EditJointsImage {
|
||||
background-image: url("Icons/Dark/d_Edit_Joints.png");
|
||||
}
|
||||
|
||||
.Dark #CreateBoneImage {
|
||||
background-image: url("Icons/Dark/d_Create Bones.png");
|
||||
}
|
||||
|
||||
.Dark #SplitBoneImage {
|
||||
background-image: url("Icons/Dark/d_Split Bones.png");
|
||||
}
|
||||
|
||||
.Dark #BoneReparentImage {
|
||||
background-image: url("Icons/Dark/d_Parent_Bone.png");
|
||||
}
|
||||
|
||||
.Checked #EditPoseImage{
|
||||
background-image: url("Icons/Selected/Edit_Pose.png");
|
||||
}
|
||||
|
||||
.Checked #EditJointsImage {
|
||||
background-image: url("Icons/Selected/Edit_Joints.png");
|
||||
}
|
||||
|
||||
.Checked #CreateBoneImage {
|
||||
background-image: url("Icons/Selected/Create Bones.png");
|
||||
}
|
||||
|
||||
.Checked #SplitBoneImage {
|
||||
background-image: url("Icons/Selected/Split Bones.png");
|
||||
}
|
||||
|
||||
.Checked #BoneReparentImage {
|
||||
background-image: url("Icons/Selected/Parent_Bone.png");
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<UXML xmlns:ui="UnityEngine.UIElements" xmlns:aui="UnityEditor.U2D.Animation">
|
||||
<aui:CopyToolbar name="CopyToolbar">
|
||||
<ui:Button name="Copy" tooltip="Copy">
|
||||
<ui:Image name="CopyImage" />
|
||||
</ui:Button>
|
||||
<ui:Button name="Paste" tooltip="Paste">
|
||||
<ui:Image name="PasteImage" />
|
||||
</ui:Button>
|
||||
</aui:CopyToolbar>
|
||||
</UXML>
|
@@ -0,0 +1,11 @@
|
||||
/**********************************************************************************************************************/
|
||||
/* CopyToolbar */
|
||||
/**********************************************************************************************************************/
|
||||
|
||||
#CopyImage {
|
||||
background-image: url("Icons/Selected/Copy.png");
|
||||
}
|
||||
|
||||
#PasteImage {
|
||||
background-image: url("Icons/Selected/Paste.png");
|
||||
}
|
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<UXML xmlns:ui="UnityEngine.UIElements" xmlns:eui="UnityEditor.UIElements" xmlns:aui="UnityEditor.U2D.Animation">
|
||||
<aui:GenerateGeometryPanel name="GenerateGeometryPanel" picking-mode="Ignore">
|
||||
<ui:PopupWindow text="Geometry">
|
||||
<ui:VisualElement name="Content">
|
||||
<ui:VisualElement class="form-row">
|
||||
<ui:Label name="OutlineDetailLabel" tooltip="Accuracy of the generated outline. Small values will produce simpler outlines. Large values will produce denser outlines that fit to the Sprite better" text="Outline Detail" />
|
||||
<ui:VisualElement class="form-editor">
|
||||
<ui:Slider name="OutlineDetailSlider" direction="Horizontal" low-value="0" high-value="100" />
|
||||
<eui:IntegerField name="OutlineDetailField" class="slider-field" value="0" />
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement class="form-row">
|
||||
<ui:Label name="AlphaToleranceLabel" tooltip="Pixels with alpha value smaller than tolerance will be considered transparent during outline detection" text="Alpha Tolerance" />
|
||||
<ui:VisualElement class="form-editor">
|
||||
<ui:Slider name="AlphaToleranceSlider" direction="Horizontal" low-value="0" high-value="254" />
|
||||
<eui:IntegerField name="AlphaToleranceField" class="slider-field" value="0" />
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement class="form-row">
|
||||
<ui:Label name="SubdivideLabel" tooltip="Tesselate the Sprite by adding vertices inside the generated outline" text="Subdivide" />
|
||||
<ui:VisualElement class="form-editor">
|
||||
<ui:Slider name="SubdivideSlider" direction="Horizontal" low-value="0" high-value="100" />
|
||||
<eui:IntegerField name="SubdivideField" class="slider-field" value="0" />
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement class="form-row">
|
||||
<ui:Label name="GenerateWeightsLabel" tooltip="Initialize weights automatically for the generated geometry" text="Weights" />
|
||||
<ui:Toggle name="GenerateWeightsField" class="form-editor" value="true" />
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement class="form-row-space" />
|
||||
<ui:VisualElement name="GenerateSingleSprite" class="form-row">
|
||||
<ui:Button name="GenerateGeometryButton" text="Generate For Selected" tooltip="Generate Geometry for the selected Sprite"/>
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name="GenerateMultipleSprite" class="form-row">
|
||||
<ui:Button name="GenerateGeometryAllButton" text="Generate For All Visible" tooltip="Generate Geometry for all the Sprites"/>
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
</ui:PopupWindow>
|
||||
</aui:GenerateGeometryPanel>
|
||||
</UXML>
|
@@ -0,0 +1,17 @@
|
||||
/**********************************************************************************************************************/
|
||||
/* GenerateGeometryPanel */
|
||||
/**********************************************************************************************************************/
|
||||
|
||||
#GenerateGeometryPanel {
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
#GenerateGeometryPanel.Single #GenerateMultipleSprite {
|
||||
visibility: hidden;
|
||||
height : 0;
|
||||
}
|
||||
|
||||
#GenerateGeometryPanel.Multiple #GenerateSingleSprite {
|
||||
visibility: hidden;
|
||||
height : 0;
|
||||
}
|
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<UXML xmlns:ui="UnityEngine.UIElements" xmlns:eui="UnityEditor.UIElements" xmlns:aui="UnityEditor.U2D.Animation">
|
||||
<aui:GenerateWeightsPanel name="GenerateWeightsPanel" picking-mode="Ignore">
|
||||
<ui:PopupWindow text="Weights">
|
||||
<ui:VisualElement class="form-row" name ="AssociateBonesControl">
|
||||
<ui:Label name="AssociateBonesLabel" tooltip="Automatically associate Bones to Sprites if Bones overlay on the Sprite" text="Associate Bones" />
|
||||
<ui:Toggle name="AssociateBonesField" class="form-editor" value="false" />
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name="Content">
|
||||
<ui:VisualElement class="form-row-space" />
|
||||
<ui:VisualElement class="form-row">
|
||||
<ui:Button name="GenerateWeightsButton" text="Generate" tooltip="Generate Weights"/>
|
||||
<ui:Button name="NormalizeWeightsButton" text="Normalize" tooltip="Normalize Weights"/>
|
||||
<ui:Button name="ClearWeightsButton" text="Clear" tooltip="Clear Weights"/>
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
</ui:PopupWindow>
|
||||
</aui:GenerateWeightsPanel>
|
||||
</UXML>
|
@@ -0,0 +1,20 @@
|
||||
/**********************************************************************************************************************/
|
||||
/* GenerateWeightsPanel */
|
||||
/**********************************************************************************************************************/
|
||||
|
||||
.AssociateBoneDisabled {
|
||||
height: 70px;
|
||||
}
|
||||
|
||||
.AssociateBoneEnabled {
|
||||
height: 90px;
|
||||
}
|
||||
|
||||
#Content{
|
||||
width : 250px;
|
||||
align-content : center;
|
||||
}
|
||||
|
||||
.form-row{
|
||||
align-content : center;
|
||||
}
|
After Width: | Height: | Size: 401 B |
After Width: | Height: | Size: 806 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 564 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 206 B |
After Width: | Height: | Size: 297 B |
After Width: | Height: | Size: 428 B |
After Width: | Height: | Size: 552 B |
After Width: | Height: | Size: 435 B |
After Width: | Height: | Size: 870 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 366 B |
After Width: | Height: | Size: 752 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 411 B |
After Width: | Height: | Size: 772 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 561 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 428 B |
After Width: | Height: | Size: 821 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 538 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 516 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 399 B |
After Width: | Height: | Size: 735 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 414 B |
After Width: | Height: | Size: 775 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 436 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 218 B |
After Width: | Height: | Size: 361 B |
After Width: | Height: | Size: 521 B |
After Width: | Height: | Size: 670 B |
After Width: | Height: | Size: 468 B |
After Width: | Height: | Size: 948 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 435 B |
After Width: | Height: | Size: 807 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 329 B |
After Width: | Height: | Size: 604 B |
After Width: | Height: | Size: 920 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 470 B |
After Width: | Height: | Size: 928 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 399 B |
After Width: | Height: | Size: 399 B |
After Width: | Height: | Size: 814 B |
After Width: | Height: | Size: 814 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 351 B |
After Width: | Height: | Size: 747 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 199 B |
After Width: | Height: | Size: 352 B |
After Width: | Height: | Size: 588 B |
After Width: | Height: | Size: 759 B |