From 727743e9fa2830ff00b3ff00a3c363fd5eea1a1a Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 2 Dec 2021 19:22:16 -0500 Subject: [PATCH] v1.1.0: buff names in the hero info window now have a max with --- .../shatteredpixel/shatteredpixeldungeon/windows/WndHero.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndHero.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndHero.java index 92a0e1d7a..66d0bfa4e 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndHero.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndHero.java @@ -279,10 +279,12 @@ public class WndHero extends WndTabbed { protected void layout() { super.layout(); icon.y = this.y; + txt.maxWidth((int)(width - icon.width())); txt.setPos( icon.width + GAP, this.y + (icon.height - txt.height()) / 2 ); + PixelScene.align(txt); } protected boolean onClick ( float x, float y ) {