Mobile rebuild button support
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 ++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user