v3.2.5: adjusted new title fade button to align with bottom of the scene

This commit is contained in:
Evan Debenham
2025-09-21 16:28:11 -04:00
parent c645462651
commit 5bbcf99e8f

View File

@@ -266,10 +266,7 @@ public class TitleScene extends PixelScene {
};
btnFade.icon().originToCenter();
btnFade.icon().angle = 180f;
btnFade.setRect(btnAreaLeft + (buttonAreaWidth-16)/2, btnAbout.bottom() + GAP/2 + 2, 16, 10);
if (btnFade.bottom() > camera.main.height){
btnFade.setPos(btnFade.left(), btnFade.top() - (btnFade.bottom()-camera.main.height));
}
btnFade.setRect(btnAreaLeft + (buttonAreaWidth-16)/2, camera.main.height - 16, 16, 16);
add(btnFade);
PointerArea fadeResetter = new PointerArea(0, 0, Camera.main.width, Camera.main.height){