mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-10 23:28:52 +07:00
Fixed #7815
This commit is contained in:
parent
4e5bc8fc94
commit
9f0a1d863e
@ -464,7 +464,7 @@ public class MapEditorDialog extends Dialog implements Disposable{
|
||||
}
|
||||
|
||||
public void build(){
|
||||
float size = 58f;
|
||||
float size = mobile ? 50f : 58f;
|
||||
|
||||
clearChildren();
|
||||
table(cont -> {
|
||||
|
@ -63,7 +63,7 @@ public class MapPlayDialog extends BaseDialog{
|
||||
modes.button(mode.toString(), Styles.flatToggleMenut, () -> {
|
||||
selectedGamemode = 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();
|
||||
}
|
||||
});
|
||||
|
@ -196,7 +196,7 @@ public class CanvasBlock extends Block{
|
||||
}
|
||||
}, new GridImage(canvasSize, canvasSize){{
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user