Mobile rebuild button support

This commit is contained in:
Anuken
2023-05-11 13:41:45 -04:00
parent 74f1688dd2
commit d34631458e
7 changed files with 90 additions and 63 deletions

View File

@@ -59,12 +59,12 @@ public class JoinDialog extends BaseDialog{
loadServers();
//mobile players don't get information >:(
boolean infoButton = !steam && !Core.app.isMobile();
boolean infoButton = !steam && !mobile;
if(infoButton) buttons.add().width(60f);
buttons.add().growX().width(-1);
addCloseButton(Core.app.isMobile() ? 190f : 210f);
addCloseButton(mobile ? 190f : 210f);
buttons.button("@server.add", Icon.add, () -> {
renaming = null;

View File

@@ -184,7 +184,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
b.add(planet.localizedName).color(Pal.accent).style(Styles.outlineLabel);
b.row();
b.image(new TextureRegionDrawable(tex)).grow().scaling(Scaling.fit);
}, Styles.togglet, () -> selected[0] = planet).size(Core.app.isMobile() ? 220f : 320f).group(group);
}, Styles.togglet, () -> selected[0] = planet).size(mobile ? 220f : 320f).group(group);
i ++;
}