增加Symbol选择Custom类型时的Warning提示

This commit is contained in:
monitor1394
2023-05-04 07:57:04 +08:00
parent 36d629b29a
commit fdd686b038
5 changed files with 14 additions and 4 deletions

View File

@@ -15,10 +15,11 @@ namespace XCharts.Editor
if (MakeComponentFoldout(prop, "m_Show", true))
{
++EditorGUI.indentLevel;
var type = (SymbolType) prop.FindPropertyRelative("m_Type").enumValueIndex;
var type = (SymbolType)prop.FindPropertyRelative("m_Type").enumValueIndex;
PropertyField(prop, "m_Type");
if (type == SymbolType.Custom)
{
AddHelpBox("Custom Symbol only work in PictorialBar serie", MessageType.Warning);
PropertyField(prop, "m_Image");
PropertyField(prop, "m_ImageType");
PropertyField(prop, "m_Width");