Browse Source

Display error icon on right hand side of command

master
chrisgregan 10 years ago
parent
commit
dfd79d94a4
  1. 12
      Assets/Fungus/FungusScript/Editor/CommandListAdaptor.cs

12
Assets/Fungus/FungusScript/Editor/CommandListAdaptor.cs

@ -248,6 +248,18 @@ namespace Fungus
summaryRect.x += commandNameWidth;
summaryRect.width -= commandNameWidth;
}
if (error)
{
GUISkin editorSkin = EditorGUIUtility.GetBuiltinSkin(EditorSkin.Inspector);
Rect errorRect = new Rect(summaryRect);
errorRect.x += errorRect.width - 20;
errorRect.y += 2;
errorRect.width = 20;
GUI.Label(errorRect, editorSkin.GetStyle("CN EntryError").normal.background);
summaryRect.width -= 20;
}
GUIStyle summaryStyle = new GUIStyle(EditorStyles.miniLabel);
summaryStyle.padding.top += 3;
summaryStyle.richText = true;

Loading…
Cancel
Save