Closes #8027
This commit is contained in:
@@ -32,8 +32,10 @@ public abstract class UnlockableContent extends MappableContent{
|
|||||||
public boolean alwaysUnlocked = false;
|
public boolean alwaysUnlocked = false;
|
||||||
/** Whether to show the description in the research dialog preview. */
|
/** Whether to show the description in the research dialog preview. */
|
||||||
public boolean inlineDescription = true;
|
public boolean inlineDescription = true;
|
||||||
/** Whether details of blocks are hidden in custom games if they haven't been unlocked in campaign mode. */
|
/** Whether details are hidden in custom games if this hasn't been unlocked in campaign mode. */
|
||||||
public boolean hideDetails = true;
|
public boolean hideDetails = true;
|
||||||
|
/** Whether this is hidden from the Core Database. */
|
||||||
|
public boolean hideDatabase = false;
|
||||||
/** If false, all icon generation is disabled for this content; createIcons is not called. */
|
/** If false, all icon generation is disabled for this content; createIcons is not called. */
|
||||||
public boolean generateIcons = true;
|
public boolean generateIcons = true;
|
||||||
/** How big the content appears in certain selection menus */
|
/** How big the content appears in certain selection menus */
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ public class DatabaseDialog extends BaseDialog{
|
|||||||
ContentType type = ContentType.all[j];
|
ContentType type = ContentType.all[j];
|
||||||
|
|
||||||
Seq<UnlockableContent> array = allContent[j]
|
Seq<UnlockableContent> array = allContent[j]
|
||||||
.select(c -> c instanceof UnlockableContent u && !u.isHidden() && (tab == Planets.sun || u.allDatabaseTabs || u.databaseTabs.contains(tab)) &&
|
.select(c -> c instanceof UnlockableContent u && !u.isHidden() && !u.hideDatabase && (tab == Planets.sun || u.allDatabaseTabs || u.databaseTabs.contains(tab)) &&
|
||||||
(text.isEmpty() || u.localizedName.toLowerCase().contains(text))).as();
|
(text.isEmpty() || u.localizedName.toLowerCase().contains(text))).as();
|
||||||
|
|
||||||
if(array.size == 0) continue;
|
if(array.size == 0) continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user