/// <summary> /// Start button click listener /// </summary> private void StartButton_Click(object sender, EventArgs e) { // Generate a new world :D orbis.GenerateWorld(seed.GetValue(), orbis.DecorationSettings, orbis.WorldSettings, orbis.BiomeCollection, orbis.CivSettings, civs.GetValue(), radius.GetValue(), ticks.GetValue()); orbis.UI.CurrentWindow = orbis.UI.GameUI; stateManager.SetActiveState(StateManager.State.GAME); Toggle_Popup(); }
/// <summary> /// Perform the update for this frame. /// </summary> public override void Update() { if (!initialized) { fog.SetValue((int)(orbis.SceneRenderer.FogDistance)); decorationDensity.SetValue((int)(orbis.SceneRenderer.DecorationDensityCap * 100)); fog.Refresh(); decorationDensity.Refresh(); initialized = true; } if (decorationDensity.GetValue() >= 0 && decorationDensity.GetValue() <= 100) { orbis.SceneRenderer.DecorationDensityCap = decorationDensity.GetValue() / 100.0f; } if (fog.GetValue() >= 1) { orbis.SceneRenderer.FogDistance = fog.GetValue(); } base.Update(); }