Reset chat font cache color

This commit is contained in:
Anuken
2021-10-02 13:01:54 -04:00
parent d95662233c
commit b20cdb97c5
3 changed files with 3 additions and 1 deletions

View File

@@ -149,6 +149,7 @@ public class ChatFragment extends Table{
if(i - scrollPos == 0) theight -= textspacing + 1;
font.getCache().clear();
font.getCache().setColor(Color.white);
font.getCache().addText(messages.get(i).formattedMessage, fontoffsetx + offsetx, offsety + theight, textWidth, Align.bottomLeft, true);
if(!shown && fadetime - i < 1f && fadetime - i >= 0f){

View File

@@ -133,6 +133,7 @@ public class ScriptConsoleFragment extends Table{
if(i - scrollPos == 0) theight -= textspacing + 1;
font.getCache().clear();
font.getCache().setColor(Color.white);
font.getCache().addText(messages.get(i), fontoffsetx + offsetx, offsety + theight, textWidth, Align.bottomLeft, true);
if(!open){