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