diff --git a/Assets/Fungus/UI/Scripts/Commands/FadeUI.cs b/Assets/Fungus/UI/Scripts/Commands/FadeUI.cs index a4323f17..3b80e3b0 100644 --- a/Assets/Fungus/UI/Scripts/Commands/FadeUI.cs +++ b/Assets/Fungus/UI/Scripts/Commands/FadeUI.cs @@ -119,8 +119,17 @@ namespace Fungus protected override string GetSummaryValue() { - return targetAlpha.Value.ToString(); - } + if (fadeMode == FadeMode.Alpha) + { + return targetAlpha.Value.ToString() + " alpha"; + } + else if (fadeMode == FadeMode.Color) + { + return targetColor.Value.ToString() + " color"; + } + + return ""; + } public override bool IsPropertyVisible(string propertyName) { diff --git a/Assets/Fungus/UI/Scripts/Commands/TweenUI.cs b/Assets/Fungus/UI/Scripts/Commands/TweenUI.cs index 5b8d93de..aa8c04c0 100644 --- a/Assets/Fungus/UI/Scripts/Commands/TweenUI.cs +++ b/Assets/Fungus/UI/Scripts/Commands/TweenUI.cs @@ -88,7 +88,7 @@ namespace Fungus { return "Error: No targetObjects selected"; } - return targetObjects[0].name + " = " + GetSummaryValue() + " alpha"; + return targetObjects[0].name + " = " + GetSummaryValue(); } string objectList = ""; @@ -109,7 +109,7 @@ namespace Fungus } } - return objectList + " = " + GetSummaryValue() + " alpha"; + return objectList + " = " + GetSummaryValue(); } public override Color GetButtonColor()