v0.7.5b: fixed various layout issues on different windows

This commit is contained in:
Evan Debenham 2019-10-13 13:05:50 -04:00
parent 29d45f0e41
commit dd78fe74a0
6 changed files with 9 additions and 9 deletions

View File

@ -60,7 +60,7 @@ public class WndInfoBuff extends Window {
RenderedTextBlock txtInfo = PixelScene.renderTextBlock(buff.desc(), 6);
txtInfo.maxWidth(WIDTH);
txtInfo.setPos(titlebar.left(), titlebar.bottom() + GAP);
txtInfo.setPos(titlebar.left(), titlebar.bottom() + 2*GAP);
add( txtInfo );
resize( WIDTH, (int)txtInfo.bottom() + 2 );

View File

@ -117,8 +117,8 @@ public class WndInfoCell extends Window {
info.text( desc.length() == 0 ? Messages.get(this, "nothing") : desc );
info.maxWidth(WIDTH);
info.setPos(titlebar.left(), titlebar.bottom() + GAP);
info.setPos(titlebar.left(), titlebar.bottom() + 2*GAP);
resize( WIDTH, (int)(info.top() + info.height()) );
resize( WIDTH, (int)info.bottom()+2 );
}
}

View File

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

View File

@ -116,7 +116,7 @@ public class WndLangs extends Window {
//language info layout.
RenderedTextBlock title = PixelScene.renderTextBlock( Messages.titleCase(currLang.nativeName()) , 9 );
title.setPos( textLeft + (textWidth - title.width())/2f, 0 );
title.setPos( textLeft + (textWidth - title.width())/2f, 2 );
title.hardlight(TITLE_COLOR);
PixelScene.align(title);
add(title);

View File

@ -71,7 +71,7 @@ public class WndStory extends Window {
WIDTH_L - MARGIN * 2:
WIDTH_P - MARGIN *2);
tf.invert();
tf.setPos(MARGIN, 0);
tf.setPos(MARGIN, 2);
add( tf );
add( new PointerArea( chrome ) {
@ -81,7 +81,7 @@ public class WndStory extends Window {
}
} );
resize( (int)(tf.width() + MARGIN * 2), (int)Math.min( tf.height(), 180 ) );
resize( (int)(tf.width() + MARGIN * 2), (int)Math.min( tf.height()+2, 180 ) );
}
@Override

View File

@ -51,7 +51,7 @@ public class WndTitledMessage extends Window {
RenderedTextBlock text = PixelScene.renderTextBlock( 6 );
text.text( message, width );
text.setPos( titlebar.left(), titlebar.bottom() + GAP );
text.setPos( titlebar.left(), titlebar.bottom() + 2*GAP );
add( text );
resize( width, (int)text.bottom() + 2 );