Removed inaccessible planets from generate dialog

This commit is contained in:
Anuken
2022-06-08 16:07:44 -04:00
parent 5bf3155272
commit c56666b104
2 changed files with 3 additions and 1 deletions

View File

@@ -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;

View File

@@ -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;