mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-04 06:31:42 +07:00
Mod dialog fixes
This commit is contained in:
parent
7402577902
commit
87bbb1ac27
@ -428,9 +428,10 @@ public class ModsDialog extends BaseDialog{
|
||||
|
||||
for(ModListing mod : listings){
|
||||
if(((mod.hasJava || mod.hasScripts) && Vars.ios) ||
|
||||
(!Strings.matches(searchtxt, mod.name) && !Strings.matches(searchtxt, mod.repo)) ||
|
||||
(!Strings.matches(searchtxt, mod.name) && !Strings.matches(searchtxt, mod.repo))
|
||||
//hack, I'm basically testing if 135.10 >= modVersion, which is equivalent to modVersion >= 136
|
||||
(Version.isAtLeast(135, 10, mod.minGameVersion))) continue;
|
||||
//|| (Version.isAtLeast(135, 10, mod.minGameVersion))
|
||||
) continue;
|
||||
|
||||
float s = 64f;
|
||||
|
||||
@ -529,6 +530,7 @@ public class ModsDialog extends BaseDialog{
|
||||
t.add("[accent]" + release.getString("name") + (index == 0 ? " " + Core.bundle.get("mods.browser.latest") : "")).top().left().growX().wrap().pad(5f);
|
||||
t.row();
|
||||
t.add((release.getString("published_at")).substring(0, 10).replaceAll("-", "/")).top().left().growX().wrap().pad(5f).color(Color.gray);
|
||||
t.row();
|
||||
t.table(b -> {
|
||||
b.defaults().size(150f, 54f).pad(2f);
|
||||
b.button("@mods.github.open-release", Icon.link, () -> Core.app.openURI(release.getString("html_url")));
|
||||
@ -541,7 +543,7 @@ public class ModsDialog extends BaseDialog{
|
||||
|
||||
if(j < releases.size - 1) p.row();
|
||||
}
|
||||
}).width(600f).scrollX(false).fillY();
|
||||
}).width(500f).scrollX(false).fillY();
|
||||
downloads.buttons.button("@back", Icon.left, () -> {
|
||||
downloads.clear();
|
||||
downloads.hide();
|
||||
|
Loading…
Reference in New Issue
Block a user