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);
|
||||
|
||||
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;
|
||||
add(bar);
|
||||
}
|
||||
@@ -419,7 +419,7 @@ public class GameScene extends PixelScene {
|
||||
if (uiSize == 2) {
|
||||
inventory = new InventoryPane();
|
||||
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);
|
||||
|
||||
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