Merge branch 'master' into patch-5
@@ -8,7 +8,7 @@ buildscript{
|
||||
}
|
||||
|
||||
dependencies{
|
||||
classpath 'com.android.tools.build:gradle:3.4.0'
|
||||
classpath 'com.android.tools.build:gradle:3.4.1'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -166,27 +166,4 @@ task run(type: Exec){
|
||||
|
||||
def adb = path + "/platform-tools/adb"
|
||||
commandLine "$adb", 'shell', 'am', 'start', '-n', 'io.anuke.mindustry/io.anuke.mindustry.AndroidLauncher'
|
||||
}
|
||||
|
||||
// sets up the Android Idea project, using the old Ant based build.
|
||||
idea{
|
||||
module{
|
||||
sourceDirs += file("src")
|
||||
scopes = [COMPILE: [plus: [project.configurations.compile]]]
|
||||
|
||||
iml{
|
||||
withXml{
|
||||
def node = it.asNode()
|
||||
def builder = NodeBuilder.newInstance()
|
||||
builder.current = node
|
||||
builder.component(name: "FacetManager"){
|
||||
facet(type: "android", name: "Android"){
|
||||
configuration{
|
||||
option(name: "UPDATE_PROPERTY_FILES", value: "true")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -15,16 +15,15 @@ import io.anuke.arc.backends.android.surfaceview.AndroidApplication;
|
||||
import io.anuke.arc.backends.android.surfaceview.AndroidApplicationConfiguration;
|
||||
import io.anuke.arc.files.FileHandle;
|
||||
import io.anuke.arc.function.Consumer;
|
||||
import io.anuke.arc.function.Predicate;
|
||||
import io.anuke.arc.scene.ui.layout.Unit;
|
||||
import io.anuke.arc.util.Strings;
|
||||
import io.anuke.arc.util.serialization.Base64Coder;
|
||||
import io.anuke.mindustry.core.Platform;
|
||||
import io.anuke.mindustry.game.Saves.SaveSlot;
|
||||
import io.anuke.mindustry.io.SaveIO;
|
||||
import io.anuke.mindustry.net.Net;
|
||||
import io.anuke.mindustry.net.*;
|
||||
import io.anuke.mindustry.ui.dialogs.FileChooser;
|
||||
import io.anuke.mindustry.net.ArcNetClient;
|
||||
import io.anuke.mindustry.net.ArcNetServer;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.ArrayList;
|
||||
@@ -72,10 +71,10 @@ public class AndroidLauncher extends AndroidApplication{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void showFileChooser(String text, String content, Consumer<FileHandle> cons, boolean open, String filetype){
|
||||
chooser = new FileChooser(text, file -> file.extension().equalsIgnoreCase(filetype), open, cons);
|
||||
public void showFileChooser(String text, String content, Consumer<FileHandle> cons, boolean open, Predicate<String> filetype){
|
||||
chooser = new FileChooser(text, file -> filetype.test(file.extension().toLowerCase()), open, cons);
|
||||
if(Build.VERSION.SDK_INT < Build.VERSION_CODES.M || (checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED &&
|
||||
checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED)){
|
||||
checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED)){
|
||||
chooser.show();
|
||||
chooser = null;
|
||||
}else{
|
||||
@@ -157,7 +156,7 @@ public class AndroidLauncher extends AndroidApplication{
|
||||
SaveSlot slot = control.saves.importSave(file);
|
||||
ui.load.runLoadSave(slot);
|
||||
}catch(IOException e){
|
||||
ui.showError(Core.bundle.format("save.import.fail", Strings.parseException(e, false)));
|
||||
ui.showError(Core.bundle.format("save.import.fail", Strings.parseException(e, true)));
|
||||
}
|
||||
}else{
|
||||
ui.showError("$save.import.invalid");
|
||||
|
||||
@@ -15,8 +15,6 @@ buildscript{
|
||||
}
|
||||
|
||||
allprojects{
|
||||
apply plugin: "idea"
|
||||
|
||||
version = 'release'
|
||||
|
||||
ext{
|
||||
|
||||
|
Before Width: | Height: | Size: 121 B After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 312 B After Width: | Height: | Size: 8.0 KiB |
|
Before Width: | Height: | Size: 111 B After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 217 B After Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 1018 B After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 111 B After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 215 B After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 123 B After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 83 B After Width: | Height: | Size: 125 B |
|
Before Width: | Height: | Size: 93 B After Width: | Height: | Size: 123 B |
|
Before Width: | Height: | Size: 95 B After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 119 B After Width: | Height: | Size: 401 B |
BIN
core/assets-raw/sprites/blocks/distribution/center.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 98 B After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 98 B After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 98 B After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 97 B After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 116 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 117 B After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 119 B After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 117 B After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 113 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 108 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 104 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 106 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 107 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 110 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 110 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 108 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 105 B After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 105 B After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 105 B After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 105 B After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 103 B After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 127 B After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 127 B After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 133 B After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 129 B After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 120 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 114 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 110 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 113 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 108 B After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 107 B After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 110 B After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 110 B After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 111 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 111 B After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 110 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 113 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 163 B After Width: | Height: | Size: 411 B |
|
Before Width: | Height: | Size: 115 B After Width: | Height: | Size: 381 B |
|
Before Width: | Height: | Size: 273 B After Width: | Height: | Size: 852 B |
|
Before Width: | Height: | Size: 405 B After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 114 B After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 83 B After Width: | Height: | Size: 125 B |
|
Before Width: | Height: | Size: 88 B After Width: | Height: | Size: 116 B |
|
Before Width: | Height: | Size: 78 B After Width: | Height: | Size: 101 B |
|
Before Width: | Height: | Size: 120 B After Width: | Height: | Size: 219 B |
|
Before Width: | Height: | Size: 113 B After Width: | Height: | Size: 198 B |
|
Before Width: | Height: | Size: 110 B After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 253 B After Width: | Height: | Size: 920 B |
|
Before Width: | Height: | Size: 206 B After Width: | Height: | Size: 606 B |
|
Before Width: | Height: | Size: 172 B After Width: | Height: | Size: 454 B |
|
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 119 B After Width: | Height: | Size: 298 B |
|
Before Width: | Height: | Size: 168 B After Width: | Height: | Size: 455 B |
|
Before Width: | Height: | Size: 155 B After Width: | Height: | Size: 385 B |
|
Before Width: | Height: | Size: 291 B After Width: | Height: | Size: 811 B |
|
Before Width: | Height: | Size: 135 B After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 120 B After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 177 B After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 120 B After Width: | Height: | Size: 329 B |
|
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 475 B |
|
Before Width: | Height: | Size: 170 B After Width: | Height: | Size: 436 B |
|
Before Width: | Height: | Size: 294 B After Width: | Height: | Size: 850 B |
|
Before Width: | Height: | Size: 147 B After Width: | Height: | Size: 352 B |
|
Before Width: | Height: | Size: 121 B After Width: | Height: | Size: 295 B |
|
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 372 B |
|
Before Width: | Height: | Size: 99 B After Width: | Height: | Size: 199 B |
|
Before Width: | Height: | Size: 132 B After Width: | Height: | Size: 292 B |
|
Before Width: | Height: | Size: 167 B After Width: | Height: | Size: 404 B |
|
Before Width: | Height: | Size: 169 B After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 113 B After Width: | Height: | Size: 236 B |
|
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 219 B |
|
Before Width: | Height: | Size: 115 B After Width: | Height: | Size: 243 B |
|
Before Width: | Height: | Size: 130 B After Width: | Height: | Size: 265 B |
|
Before Width: | Height: | Size: 133 B After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 138 B After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 120 B After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 131 B After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 149 B After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 143 B After Width: | Height: | Size: 2.7 KiB |