Hid details of locked content

This commit is contained in:
Anuken 2021-08-23 15:20:56 -04:00
parent 71ee7558ab
commit 254284760f
2 changed files with 4 additions and 1 deletions

View File

@ -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)?

View File

@ -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();
}