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