Better portrait UI for mobile in-game editor

This commit is contained in:
Anuken
2024-10-03 22:39:21 -04:00
parent 144229803a
commit 2112c5c654
3 changed files with 3 additions and 1 deletions

View File

@@ -391,6 +391,7 @@ public class HudFragment{
if(mobile){
editorMain.row().spacerY(() -> {
if(control.input instanceof MobileInput mob){
if(Core.graphics.isPortrait()) return Core.graphics.getHeight() / 2f / Scl.scl(1f);
if(mob.hasSchematic()) return 156f;
if(mob.showCancel()) return 50f;
}