v1.1.0: buff names in the hero info window now have a max with

This commit is contained in:
Evan Debenham 2021-12-02 19:22:16 -05:00
parent a18ecc9b15
commit 727743e9fa

View File

@ -279,10 +279,12 @@ public class WndHero extends WndTabbed {
protected void layout() { protected void layout() {
super.layout(); super.layout();
icon.y = this.y; icon.y = this.y;
txt.maxWidth((int)(width - icon.width()));
txt.setPos( txt.setPos(
icon.width + GAP, icon.width + GAP,
this.y + (icon.height - txt.height()) / 2 this.y + (icon.height - txt.height()) / 2
); );
PixelScene.align(txt);
} }
protected boolean onClick ( float x, float y ) { protected boolean onClick ( float x, float y ) {