diff --git a/Assets/Fungus/FungusScript/Editor/FungusCommandListAdaptor.cs b/Assets/Fungus/FungusScript/Editor/FungusCommandListAdaptor.cs index b8c6c70b..ccbba41e 100644 --- a/Assets/Fungus/FungusScript/Editor/FungusCommandListAdaptor.cs +++ b/Assets/Fungus/FungusScript/Editor/FungusCommandListAdaptor.cs @@ -146,6 +146,9 @@ namespace Fungus.Script error = true; } + bool selected = (Application.isPlaying && command.IsExecuting()) || + (!Application.isPlaying && fungusScript.selectedCommand == command); + float indentSize = 20; for (int i = 0; i < command.indentLevel; ++i) { @@ -185,8 +188,7 @@ namespace Fungus.Script Color buttonBackgroundColor = commandInfoAttr.ButtonColor; Color summaryBackgroundColor = Color.white; - if ((Application.isPlaying && command.IsExecuting()) || - (!Application.isPlaying && fungusScript.selectedCommand == command)) + if (selected) { summaryBackgroundColor = Color.green; buttonBackgroundColor = Color.green; @@ -210,6 +212,10 @@ namespace Fungus.Script { labelStyle.normal.textColor = Color.grey; } + else if (error && !selected) + { + labelStyle.normal.textColor = Color.white; + } GUI.backgroundColor = summaryBackgroundColor; GUI.Box(summaryRect, summary, labelStyle); diff --git a/Assets/Shuttle/ShuttleGame.unity b/Assets/Shuttle/ShuttleGame.unity index 3ad5d180..9b10b8c1 100644 Binary files a/Assets/Shuttle/ShuttleGame.unity and b/Assets/Shuttle/ShuttleGame.unity differ