v0.7.0: slightly reduced the width of the journal window in portrait
This commit is contained in:
+2
-2
@@ -260,8 +260,8 @@ public class AlchemyScene extends PixelScene {
|
|||||||
resize(200, 130);
|
resize(200, 130);
|
||||||
t.setRect(0, 0, 200, 130);
|
t.setRect(0, 0, 200, 130);
|
||||||
} else {
|
} else {
|
||||||
resize(130, 180);
|
resize(126, 180);
|
||||||
t.setRect(0, 0, 130, 180);
|
t.setRect(0, 0, 126, 180);
|
||||||
}
|
}
|
||||||
add(t);
|
add(t);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ import java.util.HashMap;
|
|||||||
|
|
||||||
public class WndJournal extends WndTabbed {
|
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 HEIGHT_P = 180;
|
||||||
|
|
||||||
private static final int WIDTH_L = 200;
|
private static final int WIDTH_L = 200;
|
||||||
@@ -420,7 +420,8 @@ public class WndJournal extends WndTabbed {
|
|||||||
if (!toAddThisRow.isEmpty()) {
|
if (!toAddThisRow.isEmpty()) {
|
||||||
ColorBlock spacer = new ColorBlock(1, 16, 0xFF222222);
|
ColorBlock spacer = new ColorBlock(1, 16, 0xFF222222);
|
||||||
spacer.y = top;
|
spacer.y = top;
|
||||||
spacer.x = left - spacing / 2;
|
spacer.x = left - spacing / 2 - 0.5f;
|
||||||
|
PixelScene.align(spacer);
|
||||||
content.add(spacer);
|
content.add(spacer);
|
||||||
}
|
}
|
||||||
recipes.add(r);
|
recipes.add(r);
|
||||||
@@ -440,7 +441,7 @@ public class WndJournal extends WndTabbed {
|
|||||||
top += 17;
|
top += 17;
|
||||||
toAddThisRow.clear();
|
toAddThisRow.clear();
|
||||||
}
|
}
|
||||||
|
top -=1;
|
||||||
content.setSize(width(), top);
|
content.setSize(width(), top);
|
||||||
list.setSize(list.width(), list.height());
|
list.setSize(list.width(), list.height());
|
||||||
list.scrollTo(0, 0);
|
list.scrollTo(0, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user