Skip to content

Commit c45b8c5

Browse files
author
idealpersona
committed
Switch color tags to alpha tags to be color-independent
1 parent 0918dd4 commit c45b8c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets.Scripts.Core.TextWindow/TextCharacter.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public string GetCharacter(float delta)
3131
time += delta;
3232
if (StartTime > time)
3333
{
34-
return "<#FFFFFF00>" + ch;
34+
return "<alpha=#00>" + ch;
3535
}
3636
if (ch == ' ')
3737
{
@@ -43,7 +43,7 @@ public string GetCharacter(float delta)
4343
}
4444
float t = (time - StartTime) / (FinishTime - StartTime);
4545
int num = (int)Mathf.Lerp(0f, 255f, t);
46-
return "<#FFFFFF" + num.ToString("X2") + ">" + ch;
46+
return "<alpha=#" + num.ToString("X2") + ">" + ch;
4747
}
4848

4949
public void Finish()

0 commit comments

Comments
 (0)