1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-11-13 07:15:28 +03:00

iOS map imports

This commit is contained in:
Anuken 2019-09-28 10:47:40 -04:00
parent a74722aea5
commit 5e0e3f4522
3 changed files with 44 additions and 47 deletions

View File

@ -67,7 +67,6 @@ public class MapsDialog extends FloatingDialog{
});
}).size(210f, 64f);
if(!ios){
buttons.addImageTextButton("$editor.importmap", Icon.load, () -> {
platform.showFileChooser(true, mapExtension, file -> {
ui.loadAnd(() -> {
@ -115,7 +114,7 @@ public class MapsDialog extends FloatingDialog{
});
});
}).size(210f, 64f);
}
cont.clear();

View File

@ -1,3 +1,3 @@
org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=e40247177befbc2c6e312d67d6f5edad5817edca
archash=151dc8b70276b74c612d23b01573f7a8452c2b69

View File

@ -58,9 +58,7 @@ public class IOSLauncher extends IOSApplication.Delegate{
if(documentURLs.size() < 1) return;
cont.dismissViewController(true, () -> {});
controller.importDocument(documentURLs.get(0), new NSURL(getDocumentsDirectory() + "/document"), UIDocumentBrowserImportMode.Copy, (url, error) -> {
cons.accept(Core.files.absolute(url.getPath()));
});
controller.importDocument(documentURLs.get(0), new NSURL(getDocumentsDirectory() + "/document"), UIDocumentBrowserImportMode.Copy, (url, error) -> cons.accept(Core.files.absolute(url.getPath())));
}
@Override