From 88acbbdc8499002d79d5ab1a0ddf2f46b05898b1 Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 16 Jan 2026 19:51:19 -0500 Subject: [PATCH] Added credits for each map to bundle (not displayed yet) --- core/assets/bundles/bundle.properties | 62 ++++++++++++++----- .../mindustry/ctype/UnlockableContent.java | 3 +- .../src/mindustry/maps/SectorSubmissions.java | 1 + .../ui/dialogs/ContentInfoDialog.java | 2 +- 4 files changed, 52 insertions(+), 16 deletions(-) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index 16e4d815e2..015764dc76 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -918,20 +918,48 @@ sector.coastline.description = Remnants of naval unit technology have been detec sector.navalFortress.description = The enemy has established a base on a remote, naturally-fortified island. Destroy this outpost. Acquire their advanced naval craft technology, and research it. #do not translate -sector.facility32m.description = WIP, map submission by Stormride_R -sector.taintedWoods.description = WIP, map submission by Stormride_R -sector.sunkenPier.description = WIP, map submission by Stormride_R -sector.atolls.description = WIP, map submission by Stormride_R -sector.frontier.description = WIP, map submission by Stormride_R -sector.infestedCanyons.description = WIP, map submission by Skeledragon -sector.polarAerodrome.description = WIP, map submission by hhh i 17 -sector.testingGrounds.description = WIP, map submission by dnx2019 -sector.perilousHarbor.description = WIP, map submission by inkognito626 -sector.weatheredChannels.description = WIP, map submission by Skeledragon -sector.fallenVessel.description = WIP, map submission -sector.mycelialBastion.description = WIP, map submission by Skeledragon -sector.cruxscape.description = WIP, map submission by Stormride_R -sector.geothermalStronghold.description = WIP, map submission by Skeledragon +sector.facility32m.description = WIP +sector.taintedWoods.description = WIP +sector.sunkenPier.description = WIP +sector.atolls.description = WIP +sector.frontier.description = WIP +sector.infestedCanyons.description = WIP +sector.polarAerodrome.description = WIP +sector.testingGrounds.description = WIP +sector.perilousHarbor.description = WIP +sector.weatheredChannels.description = WIP +sector.fallenVessel.description = WIP +sector.mycelialBastion.description = WIP +sector.cruxscape.description = WIP +sector.geothermalStronghold.description = WIP + +#names, do not translate +sector.frozenForest.credit = Elixias Adrys +sector.facility32m.credit = Stormride_R +sector.taintedWoods.credit = Stormride_R +sector.sunkenPier.credit = Stormride_R +sector.atolls.credit = Stormride_R +sector.frontier.credit = Stormride_R +sector.infestedCanyons.credit = Skeledragon +sector.polarAerodrome.credit = hhh i 17 +sector.testingGrounds.credit = Stormride_R +sector.perilousHarbor.credit = inkognito626 +sector.weatheredChannels.credit = Skeledragon +sector.fallenVessel.credit = wpx, Stormride_R, Nahan +sector.mycelialBastion.credit = Skeledragon +sector.planetaryTerminal.credit = Skeledragon +sector.cruxscape.credit = Stormride_R +sector.geothermalStronghold.credit = Skeledragon +sector.overgrowth.credit = Skeledragon +sector.stainedMountains.credit = Pitchblende +sector.ruinousShores.credit = Pitchblende +sector.nuclearComplex.credit = Pitchblende +sector.coastline.credit = Stormride_R +sector.tarFields.credit = Dexapnow +sector.saltFlats.credit = Dexapnow +sector.windsweptIslands.credit = Stormride_R, Anuke +sector.navalFortress.credit = blackberry2093 +sector.desolateRift.credit = hhh i 17 sector.onset.name = The Onset sector.aegis.name = Aegis @@ -951,6 +979,12 @@ sector.crossroads.name = Crossroads sector.karst.name = Karst sector.origin.name = Origin +sector.origin.credit = Mechanical Fishe +sector.karst.credit = Mechanical Fishe +sector.caldera-erekir.credit = hhh i 17 +sector.siege.credit = hhh i 17 +sector.ravine.credit = Bepis + sector.onset.description = Commence the conquest of Erekir. Gather resources, produce units, and begin researching technology. sector.aegis.description = This sector contains deposits of tungsten.\nResearch the [accent]Impact Drill[] to mine this resource, and destroy the enemy base in the area. sector.lake.description = This sector's slag lake greatly limits viable units. A hover unit is the only option.\nResearch the [accent]ship fabricator[] and produce an [accent]elude[] unit as soon as possible. diff --git a/core/src/mindustry/ctype/UnlockableContent.java b/core/src/mindustry/ctype/UnlockableContent.java index 8f3a4ccca9..380fd84442 100644 --- a/core/src/mindustry/ctype/UnlockableContent.java +++ b/core/src/mindustry/ctype/UnlockableContent.java @@ -29,7 +29,7 @@ public abstract class UnlockableContent extends MappableContent{ /** Localized, formal name. Never null. Set to internal name if not found in bundle. */ public String localizedName; /** Localized description & details. May be null. */ - public @Nullable String description, details; + public @Nullable String description, details, credit; /** Whether this content is always unlocked in the tech tree. */ public boolean alwaysUnlocked = false; /** Whether to show the description in the research dialog preview. */ @@ -90,6 +90,7 @@ public abstract class UnlockableContent extends MappableContent{ this.localizedName = Core.bundle.get(getContentType() + "." + this.name + ".name", this.name); this.description = Core.bundle.getOrNull(getContentType() + "." + this.name + ".description"); this.details = Core.bundle.getOrNull(getContentType() + "." + this.name + ".details"); + this.credit = Core.bundle.getOrNull(getContentType() + "." + this.name + ".credit"); this.unlocked = Core.settings != null && Core.settings.getBool(this.name + "-unlocked", false); } diff --git a/core/src/mindustry/maps/SectorSubmissions.java b/core/src/mindustry/maps/SectorSubmissions.java index 9751ffb448..2c519d90e6 100644 --- a/core/src/mindustry/maps/SectorSubmissions.java +++ b/core/src/mindustry/maps/SectorSubmissions.java @@ -94,6 +94,7 @@ public class SectorSubmissions{ var preset = new SectorPreset("sector-" + planet.name + "-" + id, "hidden/" + id, planet, id); + if(preset.credit == null) preset.credit = author; preset.requireUnlock = false; if(difficulty > 0f) preset.difficulty = difficulty; diff --git a/core/src/mindustry/ui/dialogs/ContentInfoDialog.java b/core/src/mindustry/ui/dialogs/ContentInfoDialog.java index d5ade2118d..bac748bdcf 100644 --- a/core/src/mindustry/ui/dialogs/ContentInfoDialog.java +++ b/core/src/mindustry/ui/dialogs/ContentInfoDialog.java @@ -109,7 +109,7 @@ public class ContentInfoDialog extends BaseDialog{ if(contentClass.isAnonymousClass()) contentClass = contentClass.getSuperclass(); Core.app.openURI("https://mindustrygame.github.io/wiki/Modding%20Classes/" + contentClass.getSimpleName()); - }).margin(8f).pad(4f).padTop(8f).size(300f, 50f).row(); + }).margin(8f).pad(4f).padTop(16f).size(300f, 50f).row(); } content.displayExtra(table);