Added shownPlanets for content

This commit is contained in:
Anuken
2024-08-21 18:01:16 -04:00
parent e1fb13847b
commit 2dbd9e5ea9
6 changed files with 77 additions and 26 deletions

View File

@@ -139,11 +139,16 @@ public class TechTree{
}
}
/** Adds the specified tab to all the content in this tree. */
/** Adds the specified database tab to all the content in this tree. */
public void addDatabaseTab(UnlockableContent tab){
each(node -> node.content.databaseTabs.add(tab));
}
/** Adds the specified planet to the shownPlanets of all the content in this tree. */
public void addPlanet(Planet planet){
each(node -> node.content.shownPlanets.add(planet));
}
public Drawable icon(){
return icon == null ? new TextureRegionDrawable(content.uiIcon) : icon;
}