Update ModsDialog.java

This commit is contained in:
Anuken 2019-10-14 12:40:56 -04:00 committed by GitHub
parent 78471c1860
commit 53e9d4a3e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ public class ModsDialog extends FloatingDialog{
.size(210f, 64f);
buttons.addImageTextButton("$mod.import.github", Icon.github, () -> {
ui.showTextInput("$mod.import.github", "", "Anuken/ExampleMod", text -> {
ui.showTextInput("$mod.import.github", "", 64, "Anuken/ExampleMod", text -> {
ui.loadfrag.show();
Core.net.httpGet("http://api.github.com/repos/" + text + "/zipball/master", loc -> {
Core.net.httpGet(loc.getHeader("Location"), result -> {
@ -146,4 +146,4 @@ public class ModsDialog extends FloatingDialog{
});
}).margin(12f).width(500f);
}
}
}