This commit is contained in:
Anuken
2022-11-04 08:59:24 -04:00
parent 4e5bc8fc94
commit 9f0a1d863e
3 changed files with 3 additions and 3 deletions
@@ -464,7 +464,7 @@ public class MapEditorDialog extends Dialog implements Disposable{
} }
public void build(){ public void build(){
float size = 58f; float size = mobile ? 50f : 58f;
clearChildren(); clearChildren();
table(cont -> { table(cont -> {
@@ -63,7 +63,7 @@ public class MapPlayDialog extends BaseDialog{
modes.button(mode.toString(), Styles.flatToggleMenut, () -> { modes.button(mode.toString(), Styles.flatToggleMenut, () -> {
selectedGamemode = mode; selectedGamemode = mode;
rules = map.applyRules(mode); rules = map.applyRules(mode);
}).update(b -> b.setChecked(selectedGamemode == mode)).size(140f, 54f).disabled(!mode.valid(map)); }).update(b -> b.setChecked(selectedGamemode == mode)).size(140f, mobile ? 44f : 54f).disabled(!mode.valid(map));
if(i++ % 2 == 1) modes.row(); if(i++ % 2 == 1) modes.row();
} }
}); });
@@ -196,7 +196,7 @@ public class CanvasBlock extends Block{
} }
}, new GridImage(canvasSize, canvasSize){{ }, new GridImage(canvasSize, canvasSize){{
touchable = Touchable.disabled; touchable = Touchable.disabled;
}}).size(mobile && !Core.graphics.isPortrait() ? 290f : 480f); }}).size(mobile && !Core.graphics.isPortrait() ? Math.min(290f, Core.graphics.getHeight() / Scl.scl(1f) - 75f / Scl.scl(1f)) : 480f);
}); });
dialog.cont.row(); dialog.cont.row();