@Override protected void layout() { image.x = 0; image.y = Math.max( 0, name.height() + health.height() - image.height ); name.x = image.width + GAP; name.y = Math.max( 0, image.height - health.height() - name.height()); float w = width - image.width - GAP; health.setRect(image.width + GAP, name.y + name.height(), w, health.height()); buffs.setPos( name.x + name.width() + GAP-1, name.y + name.baseLine() - BuffIndicator.SIZE-2 ); height = health.bottom(); } }
@Override protected void layout() { image.x = 0; image.y = Math.max( 0, name.height() + health.height() - image.height ); name.x = image.width + GAP; name.y = Math.max( 0, image.height - health.height() - name.height()); float w = width - image.width - GAP; health.setRect(image.width + GAP, name.y + name.height(), w, health.height()); buffs.setPos( name.x + name.width() + GAP-1, name.y + name.baseLine() - BuffIndicator.SIZE-2 ); height = health.bottom(); } }
nLines++; } else { if (word.height() > height) height = word.baseLine();
title.hardlight( TITLE_COLOR ); title.x = (WIDTH - title.width()) / 2; title.y = (TTL_HEIGHT - title.height()) / 2; PixelScene.align(title); add( title );
title.hardlight( TITLE_COLOR ); title.x = (WIDTH - title.width()) / 2; title.y = (TTL_HEIGHT - title.height()) / 2; PixelScene.align(title); add( title );
message.y = (Camera.main.height - message.height()) / 2; align(message); add( message );
message.y = (Camera.main.height - message.height()) / 2; align(message); add( message );
panel.y = title.y + title.height(); align( panel ); add( panel );
panel.y = title.y + title.height(); align( panel ); add( panel );