增加LiquidChart的方形水位图支持

This commit is contained in:
monitor1394
2021-05-08 09:42:25 +08:00
parent a6cc044f3a
commit 53f7a00144
8 changed files with 249 additions and 14 deletions

View File

@@ -20,15 +20,26 @@ namespace XCharts
if (MakeFoldout(prop, "m_Show"))
{
++EditorGUI.indentLevel;
var shape = (Vessel.Shape)prop.FindPropertyRelative("m_Shape").intValue;
PropertyField(prop, "m_Shape");
PropertyField(prop, "m_ShapeWidth");
PropertyField(prop, "m_Gap");
PropertyTwoFiled(prop, "m_Center");
PropertyField(prop, "m_Radius");
PropertyField(prop, "m_BackgroundColor");
PropertyField(prop, "m_Color");
PropertyField(prop, "m_AutoColor");
PropertyField(prop, "m_Smoothness");
switch (shape)
{
case Vessel.Shape.Circle:
PropertyField(prop, "m_Radius");
PropertyField(prop, "m_Smoothness");
break;
case Vessel.Shape.Rect:
PropertyField(prop, "m_Width");
PropertyField(prop, "m_Height");
PropertyField(prop, "m_CornerRadius");
break;
}
--EditorGUI.indentLevel;
}
}