v3.2.3: fixed layout issues in alchemy and game scene with insets
This commit is contained in:
@@ -706,7 +706,7 @@ public class AlchemyScene extends PixelScene {
|
||||
energyLeft.text(energyText);
|
||||
energyLeft.setPos(
|
||||
centerW - energyLeft.width()/2,
|
||||
Camera.main.height - 8 - energyLeft.height()
|
||||
energyLeft.top()
|
||||
);
|
||||
|
||||
energyIcon.x = energyLeft.left() - energyIcon.width();
|
||||
@@ -882,7 +882,7 @@ public class AlchemyScene extends PixelScene {
|
||||
energyLeft.text(energyText);
|
||||
energyLeft.setPos(
|
||||
centerW - energyLeft.width()/2,
|
||||
Camera.main.height - 8 - energyLeft.height()
|
||||
energyLeft.top()
|
||||
);
|
||||
|
||||
energyIcon.x = energyLeft.left() - energyIcon.width();
|
||||
|
||||
@@ -384,7 +384,7 @@ public class GameScene extends PixelScene {
|
||||
|
||||
boss = new BossHealthBar();
|
||||
boss.camera = uiCamera;
|
||||
boss.setPos( 6 + (uiCamera.width - boss.width())/2, 20);
|
||||
boss.setPos( insets.left + 6 + (uiCamera.width - insets.left - insets.right - boss.width())/2, insets.top + 20);
|
||||
add(boss);
|
||||
|
||||
resume = new ResumeIndicator();
|
||||
|
||||
Reference in New Issue
Block a user