v1.1.0: buff names in the hero info window now have a max with
This commit is contained in:
parent
a18ecc9b15
commit
727743e9fa
|
@ -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 ) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user