v2.5.3: fixed recreate lines in game log not setting highlight to false
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user