v1.0.1: fixed text overflowing in mod info windows

This commit is contained in:
Evan Debenham 2021-08-19 15:53:08 -04:00
parent c34b2bdf96
commit 6701b59d1e

View File

@ -70,11 +70,12 @@ public class WndInfoMob extends WndTitledMessage {
image.x = 0;
image.y = Math.max( 0, name.height() + health.height() - image.height() );
float w = width - image.width() - GAP;
name.maxWidth((int)w);
name.setPos(x + image.width + GAP,
image.height() > name.height() ? y +(image.height() - name.height()) / 2 : y);
float w = width - image.width() - GAP;
health.setRect(image.width() + GAP, name.bottom() + GAP, w, health.height());
buffs.setPos(