From 254284760fa114287a288edf6464d41a0730670e Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 23 Aug 2021 15:20:56 -0400 Subject: [PATCH] Hid details of locked content --- core/assets/bundles/bundle.properties | 1 + core/src/mindustry/ui/dialogs/ContentInfoDialog.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index dee2e48919..c7df3ad76b 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -169,6 +169,7 @@ launchcore = Launch Core filename = File Name: unlocked = New content unlocked! available = New research available! +unlock.incampaign = < Unlock in campaign for details > completed = [accent]Completed techtree = Tech Tree research.legacy = [accent]5.0[] research data found.\nDo you want to [accent]load this data[], or [accent]discard it[] and restart research in the new campaign (recommended)? diff --git a/core/src/mindustry/ui/dialogs/ContentInfoDialog.java b/core/src/mindustry/ui/dialogs/ContentInfoDialog.java index 8017907da1..ce224cdfb3 100644 --- a/core/src/mindustry/ui/dialogs/ContentInfoDialog.java +++ b/core/src/mindustry/ui/dialogs/ContentInfoDialog.java @@ -1,10 +1,12 @@ package mindustry.ui.dialogs; +import arc.*; import arc.scene.ui.*; import arc.scene.ui.layout.*; import arc.struct.*; import arc.util.*; import mindustry.ctype.*; +import mindustry.gen.*; import mindustry.graphics.*; import mindustry.world.meta.*; @@ -80,7 +82,7 @@ public class ContentInfoDialog extends BaseDialog{ } if(content.details != null){ - table.add("[gray]" + content.details).pad(6).padTop(20).width(400f).wrap().fillX(); + table.add("[gray]" + (content.unlocked() ? content.details : Iconc.lock + " " + Core.bundle.get("unlock.incampaign"))).pad(6).padTop(20).width(400f).wrap().fillX(); table.row(); }