v0.6.2d: fixed layout issues with wndInfoMob
This commit is contained in:
parent
597699770f
commit
9ee20966bb
|
@ -68,14 +68,14 @@ public class WndInfoMob extends WndTitledMessage {
|
||||||
protected void layout() {
|
protected void layout() {
|
||||||
|
|
||||||
image.x = 0;
|
image.x = 0;
|
||||||
image.y = Math.max( 0, name.height() + GAP + health.height() - image.height );
|
image.y = Math.max( 0, name.height() + health.height() - image.height );
|
||||||
|
|
||||||
name.x = image.width + GAP;
|
name.x = image.width + GAP;
|
||||||
name.y = image.height - health.height() - GAP - name.baseLine();
|
name.y = Math.max( 0, image.height - health.height() - name.height());
|
||||||
|
|
||||||
float w = width - image.width - GAP;
|
float w = width - image.width - GAP;
|
||||||
|
|
||||||
health.setRect(image.width + GAP, image.height - health.height(), w, health.height());
|
health.setRect(image.width + GAP, name.y + name.height(), w, health.height());
|
||||||
|
|
||||||
buffs.setPos(
|
buffs.setPos(
|
||||||
name.x + name.width() + GAP-1,
|
name.x + name.width() + GAP-1,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user