Removed inaccessible planets from generate dialog
This commit is contained in:
@@ -102,6 +102,7 @@ public class Planets{
|
||||
tantros = new Planet("tantros", sun, 1f, 2){{
|
||||
generator = new TantrosPlanetGenerator();
|
||||
meshLoader = () -> new HexMesh(this, 4);
|
||||
accessible = false;
|
||||
atmosphereColor = Color.valueOf("3db899");
|
||||
startSector = 10;
|
||||
atmosphereRadIn = -0.01f;
|
||||
@@ -164,6 +165,7 @@ public class Planets{
|
||||
camRadius = 0.68f * scale;
|
||||
minZoom = 0.6f;
|
||||
drawOrbit = false;
|
||||
accessible = false;
|
||||
clipRadius = 2f;
|
||||
defaultEnv = Env.space;
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ public class SectorGenerateDialog extends BaseDialog{
|
||||
int i = 0;
|
||||
|
||||
for(var plan : content.planets()){
|
||||
if(plan.generator == null || plan.sectors.size == 0) continue;
|
||||
if(plan.generator == null || plan.sectors.size == 0 || !plan.accessible) continue;
|
||||
|
||||
p.button(plan.localizedName, Styles.flatTogglet, () -> {
|
||||
planet = plan;
|
||||
|
||||
Reference in New Issue
Block a user