testss
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<UXML xmlns:ui= "UnityEngine.Experimental.UIElements" xmlns:uie= "UnityEditor.Experimental.UIElements">
|
||||
<ui:VisualElement name = "polygonShapeWindow" class = "moduleWindow topLeft">
|
||||
<ui:Box name = "polygonShapeWindowFrame">
|
||||
<uie:IntegerField name = "labelIntegerField" class = "labelIntegerField" label = "Sides" value = "0"/>
|
||||
<ui:VisualElement name = "warning" >
|
||||
<ui:Image name = "icon"/>
|
||||
<ui:Label name = "warningLabel" text= "Sides can only be either 0 or anything between 3 and 128"/>
|
||||
</ui:VisualElement>
|
||||
<ui:Button name = "changeButton" text= "Change" />
|
||||
</ui:Box>
|
||||
</ui:VisualElement>
|
||||
</UXML>
|
@@ -0,0 +1,162 @@
|
||||
.unity-imgui-container {
|
||||
flex: 1 0 0;
|
||||
}
|
||||
.moduleWindow {
|
||||
position: absolute;
|
||||
}
|
||||
.bottomRight {
|
||||
bottom: 16px;
|
||||
right: 16px;
|
||||
}
|
||||
.bottomLeft {
|
||||
bottom: 16px;
|
||||
left: 0;
|
||||
}
|
||||
.topLeft {
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
.topRight {
|
||||
top: 0;
|
||||
right: 16px;
|
||||
}
|
||||
.bottomRightFloating {
|
||||
bottom: 24px;
|
||||
right: 24px;
|
||||
}
|
||||
.bottomLeftFloating {
|
||||
bottom: 24px;
|
||||
left: 8px;
|
||||
}
|
||||
.topLeftFloating {
|
||||
top: 8px;
|
||||
left: 8px;
|
||||
}
|
||||
.topRightFloating {
|
||||
top: 8px;
|
||||
right: 24px;
|
||||
}
|
||||
#moduleViewElement{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
#spriteFrameInspector{
|
||||
min-width: 330px;
|
||||
min-height: 170px;
|
||||
flex: 1 0 0;
|
||||
}
|
||||
#spriteFrameModuleInspector {
|
||||
min-width: 330px;
|
||||
min-height: 170px;
|
||||
flex: 1 0 0;
|
||||
}
|
||||
|
||||
#spriteFrameModuleInspector Label{
|
||||
-unity-text-align: upper-left;
|
||||
}
|
||||
|
||||
#spriteFrameModuleInspector #unity-text-input{
|
||||
-unity-text-align: upper-left;
|
||||
min-height : 18px;
|
||||
}
|
||||
|
||||
.spriteFrameModuleInspectorField {
|
||||
flex-direction: row;
|
||||
min-height: 18px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
.spriteFrameModuleInspectorField > Label {
|
||||
width: 130px;
|
||||
}
|
||||
|
||||
.spriteFrameModuleInspectorField > EnumField > .unity-label {
|
||||
width: 130px;
|
||||
min-width:0;
|
||||
}
|
||||
|
||||
|
||||
.spriteFrameModuleInspectorField > EnumField {
|
||||
flex: 1 0 0;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.spriteFrameModuleInspectorField > #SpriteName {
|
||||
flex: 1 0 0;
|
||||
flex-direction : row;
|
||||
}
|
||||
|
||||
#spriteName {
|
||||
flex : 1;
|
||||
}
|
||||
|
||||
#spriteName > Label {
|
||||
width: 130px;
|
||||
min-width:0;
|
||||
}
|
||||
|
||||
#spriteEditorWindowToolbar{
|
||||
height : 21px;
|
||||
flex: 0 0 auto;
|
||||
margin-top : 0;
|
||||
}
|
||||
#spriteEditorWindowMainView{
|
||||
flex: 1 0 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#polygonShapeWindow{
|
||||
width : 155px;
|
||||
min-height : 45px;
|
||||
}
|
||||
#polygonShapeWindowFrame{
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
flex: 1 0 0;
|
||||
flex-direction : column;
|
||||
}
|
||||
#polygonShapeWindowFrame > .labelIntegerField{
|
||||
flex: 1 0 0;
|
||||
flex-direction: row;
|
||||
}
|
||||
#polygonShapeWindowFrame > .labelIntegerField > Label{
|
||||
margin-right: 0;
|
||||
margin-top: 4px;
|
||||
min-width:0;
|
||||
align-self:center;
|
||||
}
|
||||
#polygonShapeWindowFrame > .labelIntegerField > IntegerField{
|
||||
flex: 1 0 auto;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
#polygonShapeWindowFrame > Button{
|
||||
height : 18px;
|
||||
align-self: flex-end;
|
||||
}
|
||||
#polygonShapeWindowFrame > #warning{
|
||||
flex-direction : row;
|
||||
border-color: #a2a2a2;
|
||||
border-left-width : 1px;
|
||||
border-right-width : 1px;
|
||||
border-top-width : 1px;
|
||||
border-bottom-width : 1px;
|
||||
margin-top: 4px;
|
||||
margin-left: 4px;
|
||||
margin-bottom: 4px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
#polygonShapeWindowFrame > #warning > Image{
|
||||
background-image : resource("console.warnicon.png");
|
||||
width : 32px;
|
||||
height : 32px;
|
||||
}
|
||||
#polygonShapeWindowFrame > #warning > #warningLabel{
|
||||
white-space : normal;
|
||||
font-size : 9px;
|
||||
flex: 1 0 0;
|
||||
}
|
@@ -0,0 +1,50 @@
|
||||
<UXML xmlns:ui = "UnityEngine.Experimental.UIElements" xmlns:uie = "UnityEditor.Experimental.UIElements">
|
||||
<ui:PopupWindow name = "spriteFrameModuleInspector" text = "Sprite">
|
||||
<ui:VisualElement name = "name" class = "spriteFrameModuleInspectorField">
|
||||
<ui:TextField name = "spriteName" label = "Name" value = "Square"/>
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name = "position">
|
||||
<ui:VisualElement class = "spriteFrameModuleInspectorField unity-composite-field unity-composite-field--multi-line unity-base-field">
|
||||
<ui:Label text = "Position" />
|
||||
<ui:VisualElement class = "unity-composite-field__input unity-base-field__input">
|
||||
<ui:VisualElement name = "positionXY" class = "unity-composite-field__field-group">
|
||||
<uie:IntegerField name = "positionX" class = "unity-composite-field__field" label = "X"/>
|
||||
<uie:IntegerField name = "positionY" class = "unity-composite-field__field" label = "Y"/>
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name = "positionWH" class = "unity-composite-field__field-group">
|
||||
<uie:IntegerField name = "positionW" class = "unity-composite-field__field" label = "W"/>
|
||||
<uie:IntegerField name = "positionH" class = "unity-composite-field__field" label = "H"/>
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name = "border">
|
||||
<ui:VisualElement class = "spriteFrameModuleInspectorField unity-composite-field unity-composite-field--multi-line unity-base-field">
|
||||
<ui:Label text = "Border" />
|
||||
<ui:VisualElement class = "unity-composite-field__input unity-base-field__input">
|
||||
<ui:VisualElement name = "borderLT" class = "unity-composite-field__field-group">
|
||||
<uie:IntegerField name = "borderL" class = "unity-composite-field__field" label = "L"/>
|
||||
<uie:IntegerField name = "borderT" class = "unity-composite-field__field" label = "T"/>
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name = "borderRB" class = "unity-composite-field__field-group">
|
||||
<uie:IntegerField name = "borderR" class = "unity-composite-field__field" label = "R"/>
|
||||
<uie:IntegerField name = "borderB" class = "unity-composite-field__field" label = "B"/>
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name = "pivot" class = "spriteFrameModuleInspectorField">
|
||||
<uie:EnumField name = "pivotField" label = "Pivot" class="unity-enum-field"/>
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name = "pivotUnitMode" class = "spriteFrameModuleInspectorField">
|
||||
<uie:EnumField name = "pivotUnitModeField" label ="Pivot Unit Mode" class="unity-enum-field"/>
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name = "customPivot" class = "spriteFrameModuleInspectorField unity-composite-field unity-base-field">
|
||||
<ui:Label text = "Custom Pivot" />
|
||||
<ui:VisualElement name = "customPivotField" class = "unity-composite-field__input">
|
||||
<uie:FloatField name = "customPivotX" class = "unity-composite-field__field" label = "X"/>
|
||||
<uie:FloatField name = "customPivotY" class = "unity-composite-field__field" label = "Y"/>
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
</ui:PopupWindow>
|
||||
</UXML>
|
Reference in New Issue
Block a user