v2.5.3: fixed recreate lines in game log not setting highlight to false

This commit is contained in:
Evan Debenham
2024-09-25 11:59:03 -04:00
parent a2a39d92a1
commit 217c650f11

View File

@@ -95,7 +95,6 @@ public class GameLog extends Component implements Signal.Listener<String> {
} else {
lastEntry = PixelScene.renderTextBlock( text, 6 );
lastEntry.setHightlighting( false );
lastEntry.hardlight( color );
lastColor = color;
add( lastEntry );
@@ -155,6 +154,7 @@ public class GameLog extends Component implements Signal.Listener<String> {
float pos = y;
for (int i=length-1; i >= 0; i--) {
RenderedTextBlock entry = (RenderedTextBlock)members.get( i );
entry.setHightlighting(false);
entry.maxWidth((int)width);
entry.setPos(x, pos-entry.height());
pos -= entry.height()+2;