Mod dialog fixes
This commit is contained in:
@@ -428,9 +428,10 @@ public class ModsDialog extends BaseDialog{
|
|||||||
|
|
||||||
for(ModListing mod : listings){
|
for(ModListing mod : listings){
|
||||||
if(((mod.hasJava || mod.hasScripts) && Vars.ios) ||
|
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
|
//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;
|
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.add("[accent]" + release.getString("name") + (index == 0 ? " " + Core.bundle.get("mods.browser.latest") : "")).top().left().growX().wrap().pad(5f);
|
||||||
t.row();
|
t.row();
|
||||||
t.add((release.getString("published_at")).substring(0, 10).replaceAll("-", "/")).top().left().growX().wrap().pad(5f).color(Color.gray);
|
t.add((release.getString("published_at")).substring(0, 10).replaceAll("-", "/")).top().left().growX().wrap().pad(5f).color(Color.gray);
|
||||||
|
t.row();
|
||||||
t.table(b -> {
|
t.table(b -> {
|
||||||
b.defaults().size(150f, 54f).pad(2f);
|
b.defaults().size(150f, 54f).pad(2f);
|
||||||
b.button("@mods.github.open-release", Icon.link, () -> Core.app.openURI(release.getString("html_url")));
|
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();
|
if(j < releases.size - 1) p.row();
|
||||||
}
|
}
|
||||||
}).width(600f).scrollX(false).fillY();
|
}).width(500f).scrollX(false).fillY();
|
||||||
downloads.buttons.button("@back", Icon.left, () -> {
|
downloads.buttons.button("@back", Icon.left, () -> {
|
||||||
downloads.clear();
|
downloads.clear();
|
||||||
downloads.hide();
|
downloads.hide();
|
||||||
|
|||||||
Reference in New Issue
Block a user