mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-17 17:34:34 +08:00
update
This commit is contained in:
parent
0c66a1254e
commit
962b33e355
@ -192,6 +192,7 @@ namespace DCFApixels.DragonECS.Unity.Editors
|
||||
optionButton.yMax += HeadIconsRect.height;
|
||||
optionButton.xMin = optionButton.xMax - 64;
|
||||
optionButton.center += Vector2.up * Padding * 1f;
|
||||
//Canceling isExpanded
|
||||
if (EcsGUI.HitTest(optionButton) && Event.current.type == EventType.MouseUp)
|
||||
{
|
||||
componentProperty.isExpanded = !componentProperty.isExpanded;
|
||||
@ -218,6 +219,7 @@ namespace DCFApixels.DragonECS.Unity.Editors
|
||||
EcsGUI.DescriptionIcon(optionButton, description);
|
||||
}
|
||||
|
||||
|
||||
if (propCount <= 0)
|
||||
{
|
||||
EcsGUI.DrawEmptyComponentProperty(paddingPosition, componentRefProp, label, false);
|
||||
|
@ -599,13 +599,13 @@ namespace DCFApixels.DragonECS.Unity.Editors
|
||||
optionButton.yMax += HeadIconsRect.height;
|
||||
optionButton.xMin = optionButton.xMax - 64;
|
||||
optionButton.center += Vector2.up * padding * 2f;
|
||||
//Canceling isExpanded
|
||||
if (HitTest(optionButton) && Event.current.type == EventType.MouseUp)
|
||||
{
|
||||
ref bool isExpanded = ref expandMatrix.Down();
|
||||
isExpanded = !isExpanded;
|
||||
}
|
||||
|
||||
|
||||
GUILayout.BeginVertical(UnityEditorUtility.GetStyle(panelColor, EscEditorConsts.COMPONENT_DRAWER_ALPHA));
|
||||
EditorGUI.BeginChangeCheck();
|
||||
|
||||
@ -635,7 +635,6 @@ namespace DCFApixels.DragonECS.Unity.Editors
|
||||
pool.SetRaw(entityID, resultData);
|
||||
}
|
||||
|
||||
|
||||
GUILayout.EndVertical();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user