Skip to content

Commit

Permalink
#1346 fix rich text alpha not being taken into account
Browse files Browse the repository at this point in the history
  • Loading branch information
BenRQ committed Sep 21, 2020
1 parent 73cae6a commit 54a08e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion unity/Assets/Scripts/Quest/Quest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1749,7 +1749,11 @@ public override QuestData.Event GetEvent()
override public void SetColor(Color c)
{
if (image != null && image.gameObject != null) image.color = c;
if (uiText != null && uiText.gameObject != null) uiText.color = c;
if (uiText != null && uiText.gameObject != null)
{
uiText.color = c;
uiText.canvasRenderer.SetAlpha(c.a);
}
if (border != null) border.SetColor(c);
// Text BG has its own color, only alpha is changing
if (uiTextBG != null && uiTextBG.gameObject != null && qUI.textBackgroundColor != "transparent")
Expand Down

0 comments on commit 54a08e5

Please sign in to comment.