public override void Draw(RenderWindow rw) { base.Draw(rw); SmartText.DrawText(GP.WindowGameName, TextAlignment.MID, new Vector2f(400.0f, 150.0f), new Vector2f(1.5f, 1.5f), Palette.color1, rw); SmartText.DrawText("Start [Return]", TextAlignment.MID, new Vector2f(400.0f, 250.0f), Palette.color2, rw); SmartText.DrawText("W A S D & LShift", TextAlignment.MID, new Vector2f(530.0f, 340.0f), Palette.color2, rw); SmartText.DrawText("Arrows & RCtrl", TextAlignment.MID, new Vector2f(180.0f, 340.0f), Palette.color2, rw); }
private void DrawCredits(RenderWindow rw) { SmartText.DrawText("Intelligent Design", TextAlignment.MID, new Vector2f(400.0f, 20.0f), 1.5f, rw); SmartText.DrawText("A Game by", TextAlignment.MID, new Vector2f(400.0f, 100.0f), 0.75f, rw); SmartText.DrawText("Simon '@Laguna_999' Weis", TextAlignment.MID, new Vector2f(400.0f, 135.0f), rw); SmartText.DrawText("Visual Studio 2012 \t C#", TextAlignment.MID, new Vector2f(400, 170), 0.75f, rw); SmartText.DrawText("aseprite \t SFML.NET 2.1", TextAlignment.MID, new Vector2f(400, 200), 0.75f, rw); SmartText.DrawText("Cubase 5 \t SFXR", TextAlignment.MID, new Vector2f(400, 230), 0.75f, rw); SmartText.DrawText("Thanks to", TextAlignment.MID, new Vector2f(400, 350), 0.75f, rw); SmartText.DrawText("Julian '@Thunraz' Dinges for technical support", TextAlignment.MID, new Vector2f(400, 375), 0.75f, rw); SmartText.DrawText("Sebastian 'XzzX' Eibl for discussions and brainstorming", TextAlignment.MID, new Vector2f(400, 400), 0.75f, rw); SmartText.DrawText("Families & Friends for their great support", TextAlignment.MID, new Vector2f(400, 425), 0.75f, rw); SmartText.DrawText("Created June 2014", TextAlignment.MID, new Vector2f(400.0f, 500.0f), 0.75f, rw); ScreenEffects.GetStaticEffect("vignette").Draw(rw); }
private void DrawMenu(RenderWindow rw) { SmartText.DrawText("Intelligent Design", TextAlignment.MID, new Vector2f(400.0f, 150.0f), 1.5f, rw); if (_menuState == eMenuState.MS_START) { SmartText.DrawText("Create World [Return]", TextAlignment.MID, new Vector2f(400.0f, 250.0f), rw); SmartText.DrawText("[A]bout", TextAlignment.RIGHT, new Vector2f(770.0f, 550.0f), rw); } else if (_menuState == eMenuState.MS_ABOUT) { SmartText.DrawText("This techdemo is highly unfinished.", TextAlignment.MID, new Vector2f(400.0f, 250.0f), rw); SmartText.DrawText("Please feel free to experiment", TextAlignment.MID, new Vector2f(400.0f, 300.0f), rw); SmartText.DrawText("and watch your tribe expand", TextAlignment.MID, new Vector2f(400.0f, 325.0f), rw); } else if (_menuState == eMenuState.MS_WORLD) { SmartText.DrawText("Creating World", TextAlignment.MID, new Vector2f(300.0f, 200.0f), rw); if (EvolutionPoints > GameProperties.EvolutionPointsStart - GameProperties.EvolutionPointsWorldMax) { SmartText.DrawText("Evo Points " + EvolutionPoints, TextAlignment.MID, new Vector2f(650.0f, 200.0f), rw); } else { SmartText.DrawText("Evo Points " + EvolutionPoints, TextAlignment.MID, new Vector2f(650.0f, 200.0f), Color.Red, rw); } SmartText.DrawText("Day Night Frequency " + _worldProperties.DayNightCycleFrequency + " [Q, A]", TextAlignment.LEFT, new Vector2f(200.0f, 250.0f), 0.65f, rw); SmartText.DrawText("Max Height " + _worldProperties.MaxHeightInMeter + " [W, S]", TextAlignment.LEFT, new Vector2f(200.0f, 275.0f), 0.65f, rw); SmartText.DrawText("Mountain Height " + _worldProperties.MountainHeight + " [E, D]", TextAlignment.LEFT, new Vector2f(200.0f, 300.0f), 0.65f, rw); SmartText.DrawText("Sunlight Intensity " + _worldProperties.SunLightIntensityFactor * 100 + " [R, F]", TextAlignment.LEFT, new Vector2f(200.0f, 425.0f), 0.65f, rw); SmartText.DrawText("Atmospheric Heat Flux " + _worldProperties.AtmosphericHeatOutFluxPerSecond * 1000.0f + " [T, G]", TextAlignment.LEFT, new Vector2f(200.0f, 450.0f), 0.65f, rw); SmartText.DrawText("Create Tribe [Return]", TextAlignment.MID, new Vector2f(400.0f, 500.0f), rw); } else if (_menuState == eMenuState.MS_TRIBE) { SmartText.DrawText("Selecting Tribe", TextAlignment.MID, new Vector2f(300.0f, 200.0f), rw); if (EvolutionPoints >= 0) { SmartText.DrawText("Evo Points " + EvolutionPoints, TextAlignment.MID, new Vector2f(650.0f, 200.0f), rw); } else { SmartText.DrawText("Evo Points " + EvolutionPoints, TextAlignment.MID, new Vector2f(650.0f, 200.0f), Color.Red, rw); } SmartText.DrawText("Agility " + _tribeProperties.Agility + " [Q, A]", TextAlignment.LEFT, new Vector2f(200.0f, 250.0f), 0.65f, rw); SmartText.DrawText("Stamina " + _tribeProperties.Stamina + " [W, S]", TextAlignment.LEFT, new Vector2f(200.0f, 275.0f), 0.65f, rw); SmartText.DrawText("Strength " + _tribeProperties.Strength + " [E, D]", TextAlignment.LEFT, new Vector2f(200.0f, 300.0f), 0.65f, rw); SmartText.DrawText("Pref. Terrain " + _tribeProperties.PreferredTerrain + " [R, F]", TextAlignment.LEFT, new Vector2f(200.0f, 350.0f), 0.65f, rw); SmartText.DrawText("Pref Altitude " + _tribeProperties.PreferredAltitude + " [T, G]", TextAlignment.LEFT, new Vector2f(200.0f, 375.0f), 0.65f, rw); SmartText.DrawText("Pref Temperature " + _tribeProperties.PreferredTemperature + " [Z, H]", TextAlignment.LEFT, new Vector2f(200.0f, 400.0f), 0.65f, rw); SmartText.DrawText("Diet " + _tribeProperties.Diet + " [U, J]", TextAlignment.LEFT, new Vector2f(200.0f, 450.0f), 0.65f, rw); SmartText.DrawText("Group Behaviour " + _tribeProperties.GroupBehaviour + " [I, K]", TextAlignment.LEFT, new Vector2f(200.0f, 475.0f), 0.65f, rw); SmartText.DrawText("Start Game [Return]", TextAlignment.MID, new Vector2f(400.0f, 500.0f), rw); } SmartText.DrawText("[C]redits", TextAlignment.LEFT, new Vector2f(30.0f, 550.0f), rw); ScreenEffects.GetStaticEffect("vignette").Draw(rw); }