mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-12 08:48:09 +07:00
Some more revisions to iOS version
This commit is contained in:
@ -26,6 +26,10 @@ public class AboutDialog extends FloatingDialog {
|
|||||||
ScrollPane pane = new ScrollPane(in, "clear");
|
ScrollPane pane = new ScrollPane(in, "clear");
|
||||||
|
|
||||||
for(LinkEntry link : Links.getLinks()){
|
for(LinkEntry link : Links.getLinks()){
|
||||||
|
if(ios && link.name.equals("google-play")){ //because Apple doesn't like me mentioning android
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
Table table = new Table("button");
|
Table table = new Table("button");
|
||||||
table.margin(0);
|
table.margin(0);
|
||||||
table.table(img -> {
|
table.table(img -> {
|
||||||
|
@ -2,5 +2,5 @@ app.version=3.5
|
|||||||
app.id=io.anuke.mindustry
|
app.id=io.anuke.mindustry
|
||||||
app.mainclass=io.anuke.mindustry.IOSLauncher
|
app.mainclass=io.anuke.mindustry.IOSLauncher
|
||||||
app.executable=IOSLauncher
|
app.executable=IOSLauncher
|
||||||
app.build=6
|
app.build=10
|
||||||
app.name=Mindustry
|
app.name=Mindustry
|
||||||
|
@ -12,7 +12,6 @@ import io.anuke.mindustry.core.ThreadHandler;
|
|||||||
import io.anuke.mindustry.io.SaveIO;
|
import io.anuke.mindustry.io.SaveIO;
|
||||||
import io.anuke.mindustry.io.Saves.SaveSlot;
|
import io.anuke.mindustry.io.Saves.SaveSlot;
|
||||||
import io.anuke.mindustry.net.Net;
|
import io.anuke.mindustry.net.Net;
|
||||||
import io.anuke.ucore.core.Timers;
|
|
||||||
import io.anuke.ucore.scene.ui.TextField;
|
import io.anuke.ucore.scene.ui.TextField;
|
||||||
import io.anuke.ucore.scene.ui.layout.Unit;
|
import io.anuke.ucore.scene.ui.layout.Unit;
|
||||||
import io.anuke.ucore.util.Bundles;
|
import io.anuke.ucore.util.Bundles;
|
||||||
@ -116,10 +115,10 @@ public class IOSLauncher extends IOSApplication.Delegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void openURL(NSURL url){
|
void openURL(NSURL url){
|
||||||
FileHandle file = Gdx.files.absolute(getDocumentsDirectory()).child(url.getLastPathComponent());
|
|
||||||
Gdx.files.absolute(url.getPath()).copyTo(file);
|
|
||||||
|
|
||||||
Timers.runTask(30f, () -> {
|
Gdx.app.postRunnable(() -> {
|
||||||
|
FileHandle file = Gdx.files.absolute(getDocumentsDirectory()).child(url.getLastPathComponent());
|
||||||
|
Gdx.files.absolute(url.getPath()).copyTo(file);
|
||||||
|
|
||||||
if(file.extension().equalsIgnoreCase("mins")){ //open save
|
if(file.extension().equalsIgnoreCase("mins")){ //open save
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user