Fixed iOS menu
This commit is contained in:
@@ -125,7 +125,8 @@ public class MenuFragment{
|
|||||||
editor = new MobileButton(Icon.terrain, "@editor", () -> checkPlay(ui.maps::show)),
|
editor = new MobileButton(Icon.terrain, "@editor", () -> checkPlay(ui.maps::show)),
|
||||||
tools = new MobileButton(Icon.settings, "@settings", ui.settings::show),
|
tools = new MobileButton(Icon.settings, "@settings", ui.settings::show),
|
||||||
mods = new MobileButton(Icon.book, "@mods", ui.mods::show),
|
mods = new MobileButton(Icon.book, "@mods", ui.mods::show),
|
||||||
exit = new MobileButton(Icon.exit, "@quit", () -> Core.app.exit());
|
exit = new MobileButton(Icon.exit, "@quit", () -> Core.app.exit()),
|
||||||
|
about = new MobileButton(Icon.info, "@about.button", ui.about::show);
|
||||||
|
|
||||||
Seq<MobileButton> customs = customButtons.map(b -> new MobileButton(b.icon, b.text, b.runnable == null ? () -> {} : b.runnable));
|
Seq<MobileButton> customs = customButtons.map(b -> new MobileButton(b.icon, b.text, b.runnable == null ? () -> {} : b.runnable));
|
||||||
|
|
||||||
@@ -148,7 +149,7 @@ public class MenuFragment{
|
|||||||
for(int i = 0; i < customs.size; i += 2){
|
for(int i = 0; i < customs.size; i += 2){
|
||||||
container.add(customs.get(i));
|
container.add(customs.get(i));
|
||||||
}
|
}
|
||||||
if(!ios) container.add(exit);
|
container.add(ios ? about : exit);
|
||||||
}else{
|
}else{
|
||||||
container.marginTop(0f);
|
container.marginTop(0f);
|
||||||
container.add(play);
|
container.add(play);
|
||||||
@@ -166,7 +167,7 @@ public class MenuFragment{
|
|||||||
container.add(customs.get(i));
|
container.add(customs.get(i));
|
||||||
if(i % 2 == 0) container.row();
|
if(i % 2 == 0) container.row();
|
||||||
}
|
}
|
||||||
if(!ios) container.add(exit);
|
container.add(ios ? about : exit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user