v0.7.0: slightly reduced the width of the journal window in portrait

This commit is contained in:
Evan Debenham
2018-10-06 00:02:47 -04:00
parent dcca6a8e87
commit 702401607b
2 changed files with 6 additions and 5 deletions

View File

@@ -260,8 +260,8 @@ public class AlchemyScene extends PixelScene {
resize(200, 130);
t.setRect(0, 0, 200, 130);
} else {
resize(130, 180);
t.setRect(0, 0, 130, 180);
resize(126, 180);
t.setRect(0, 0, 126, 180);
}
add(t);
}

View File

@@ -53,7 +53,7 @@ import java.util.HashMap;
public class WndJournal extends WndTabbed {
private static final int WIDTH_P = 130;
private static final int WIDTH_P = 126;
private static final int HEIGHT_P = 180;
private static final int WIDTH_L = 200;
@@ -420,7 +420,8 @@ public class WndJournal extends WndTabbed {
if (!toAddThisRow.isEmpty()) {
ColorBlock spacer = new ColorBlock(1, 16, 0xFF222222);
spacer.y = top;
spacer.x = left - spacing / 2;
spacer.x = left - spacing / 2 - 0.5f;
PixelScene.align(spacer);
content.add(spacer);
}
recipes.add(r);
@@ -440,7 +441,7 @@ public class WndJournal extends WndTabbed {
top += 17;
toAddThisRow.clear();
}
top -=1;
content.setSize(width(), top);
list.setSize(list.width(), list.height());
list.scrollTo(0, 0);