Make hiding details optional (#5871)

* Make hiding details optional

* Sandbox blocks shouldn't have their details hidden.
This commit is contained in:
Matthew Peng
2021-08-26 17:47:35 -07:00
committed by GitHub
parent 9b22777dfb
commit 5cc461edb0
3 changed files with 7 additions and 1 deletions

View File

@@ -81,7 +81,7 @@ public class ContentInfoDialog extends BaseDialog{
}
if(content.details != null){
table.add("[gray]" + (content.unlocked() ? content.details : Iconc.lock + " " + Core.bundle.get("unlock.incampaign"))).pad(6).padTop(20).width(400f).wrap().fillX();
table.add("[gray]" + (content.unlocked() || !content.hideDetails ? content.details : Iconc.lock + " " + Core.bundle.get("unlock.incampaign"))).pad(6).padTop(20).width(400f).wrap().fillX();
table.row();
}