This commit is contained in:
2021-06-13 10:28:03 +02:00
parent eb70603c85
commit df2d24cbd3
7487 changed files with 943244 additions and 0 deletions

View File

@@ -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>

View File

@@ -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;
}

View File

@@ -0,0 +1,7 @@
BoneReparentToolWindow {
height: 300px;
}
BoneReparentToolView{
flex : 1;
}

View File

@@ -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>

View File

@@ -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>

View File

@@ -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");
}

View File

@@ -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>

View File

@@ -0,0 +1,11 @@
/**********************************************************************************************************************/
/* CopyToolbar */
/**********************************************************************************************************************/
#CopyImage {
background-image: url("Icons/Selected/Copy.png");
}
#PasteImage {
background-image: url("Icons/Selected/Paste.png");
}

View File

@@ -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>

View File

@@ -0,0 +1,17 @@
/**********************************************************************************************************************/
/* GenerateGeometryPanel */
/**********************************************************************************************************************/
#GenerateGeometryPanel {
height: 150px;
}
#GenerateGeometryPanel.Single #GenerateMultipleSprite {
visibility: hidden;
height : 0;
}
#GenerateGeometryPanel.Multiple #GenerateSingleSprite {
visibility: hidden;
height : 0;
}

View File

@@ -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>

View File

@@ -0,0 +1,20 @@
/**********************************************************************************************************************/
/* GenerateWeightsPanel */
/**********************************************************************************************************************/
.AssociateBoneDisabled {
height: 70px;
}
.AssociateBoneEnabled {
height: 90px;
}
#Content{
width : 250px;
align-content : center;
}
.form-row{
align-content : center;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 806 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 564 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 552 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 870 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 752 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 561 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 821 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 414 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 775 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 436 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 468 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 948 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 807 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 604 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 920 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 747 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Some files were not shown because too many files have changed in this diff Show More