Hidden sector submission thread link button

This commit is contained in:
Anuken
2025-06-23 14:36:29 -04:00
parent 40828a9ccc
commit 9bd1c7d783
4 changed files with 85 additions and 0 deletions

View File

@@ -1299,6 +1299,15 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
}
if((sector.hasBase() && mode == look) || canSelect(sector) || (sector.preset != null && sector.preset.alwaysUnlocked) || debugSelect){
if(Vars.showSectorSubmissions){
String link = SectorSubmissions.getSectorThread(sector);
if(link != null){
stable.button("@sectors.viewsubmission", Icon.link, () -> {
Core.app.openURI(link);
}).growX().height(54f).minWidth(170f).padTop(2f).row();
}
}
stable.button(
mode == select ? "@sectors.select" :
sector.isBeingPlayed() ? "@sectors.resume" :