v3.2.3: fixed a hero button layout issue on desktop

This commit is contained in:
Evan Debenham
2025-08-31 17:53:09 -04:00
parent 70f2395dd6
commit e420685a4e

View File

@@ -600,7 +600,10 @@ public class HeroSelectScene extends PixelScene {
@Override @Override
protected void layout() { protected void layout() {
super.layout(); super.layout();
icon.y = y + (HEIGHT - icon.height()) / 2f; //if we're super tall (i.e. rendering into display inset) then put hero at the top
if (height > 30) {
icon.y = y + (HEIGHT - icon.height()) / 2f;
}
} }
} }