v3.2.3: further improved insets in game scene (still no top insets)
This commit is contained in:
@@ -377,7 +377,7 @@ public class GameScene extends PixelScene {
|
|||||||
add(status);
|
add(status);
|
||||||
|
|
||||||
if (uiSize < 2 && insets.top > 0) {
|
if (uiSize < 2 && insets.top > 0) {
|
||||||
SkinnedBlock bar = new SkinnedBlock(uiCamera.width, insets.top, TextureCache.createSolid(0xFF000000));
|
SkinnedBlock bar = new SkinnedBlock(uiCamera.width, insets.top, TextureCache.createSolid(0xFF1C1E18));
|
||||||
bar.camera = uiCamera;
|
bar.camera = uiCamera;
|
||||||
add(bar);
|
add(bar);
|
||||||
}
|
}
|
||||||
@@ -419,7 +419,7 @@ public class GameScene extends PixelScene {
|
|||||||
if (uiSize == 2) {
|
if (uiSize == 2) {
|
||||||
inventory = new InventoryPane();
|
inventory = new InventoryPane();
|
||||||
inventory.camera = uiCamera;
|
inventory.camera = uiCamera;
|
||||||
inventory.setPos(uiCamera.width - inventory.width(), uiCamera.height - inventory.height());
|
inventory.setPos(uiCamera.width - inventory.width() - insets.right, uiCamera.height - inventory.height() - insets.bottom);
|
||||||
add(inventory);
|
add(inventory);
|
||||||
|
|
||||||
toolbar.setRect( insets.left, uiCamera.height - toolbar.height() - inventory.height() - insets.bottom, uiCamera.width - insets.right, toolbar.height() );
|
toolbar.setRect( insets.left, uiCamera.height - toolbar.height() - inventory.height() - insets.bottom, uiCamera.width - insets.right, toolbar.height() );
|
||||||
|
|||||||
Reference in New Issue
Block a user