Browse Source

Fixed command summary incorrect for Fade UI command #486

master
Christopher 9 years ago
parent
commit
7143dc1074
  1. 13
      Assets/Fungus/UI/Scripts/Commands/FadeUI.cs
  2. 4
      Assets/Fungus/UI/Scripts/Commands/TweenUI.cs

13
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)
{

4
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()

Loading…
Cancel
Save