diff --git a/org.uqbar.project.wollok.game/src/org/uqbar/project/wollok/game/VisualComponent.xtend b/org.uqbar.project.wollok.game/src/org/uqbar/project/wollok/game/VisualComponent.xtend index f92fa76c2e..3ec3ba6975 100644 --- a/org.uqbar.project.wollok.game/src/org/uqbar/project/wollok/game/VisualComponent.xtend +++ b/org.uqbar.project.wollok.game/src/org/uqbar/project/wollok/game/VisualComponent.xtend @@ -66,7 +66,6 @@ abstract class VisualComponent { this.addMessage(end, color) return } - balloonMessages.add(new BalloonMessage(message, color)) } diff --git a/org.uqbar.project.wollok.game/src/org/uqbar/project/wollok/game/gameboard/Window.xtend b/org.uqbar.project.wollok.game/src/org/uqbar/project/wollok/game/gameboard/Window.xtend index 1064942ac9..2f902e9eac 100644 --- a/org.uqbar.project.wollok.game/src/org/uqbar/project/wollok/game/gameboard/Window.xtend +++ b/org.uqbar.project.wollok.game/src/org/uqbar/project/wollok/game/gameboard/Window.xtend @@ -81,8 +81,10 @@ class Window { var plusWidth = 0 glyphLayout.reset this.setText(newText, baseWidth, color) - - while (glyphLayout.height > 29) { + + var previousHeight = 0f + while (glyphLayout.height > 29 && previousHeight !== glyphLayout.height) { + previousHeight = glyphLayout.height glyphLayout.reset plusWidth += 10 this.setText(newText, baseWidth + plusWidth, color) @@ -103,6 +105,7 @@ class Window { patchIndex++ textX = 5 } + val x = xInPixels + (DELTA_TO_VISUAL_COMPONENT * adjustmentX) var adjustmentY = 1 var textY = 0