protected override void Render() { var player = PlayerInstanceManager.GetPlayer(map) as NPCBase; if (player != null) { ConsoleHelper.AltClear(); map.GetSubGrid(player.X - 25, player.Y - 25, 50, 50, isDay).Render(); ConsoleHelper.Write(desciription, ConsoleColor.White, ConsoleColor.Black); ConsoleHelper.Write("".PadRight(90 - desciription.Length, '#'), ConsoleColor.Black, ConsoleColor.Black); Console.WriteLine(); RedrawNext(); if (redrawCharacterInfo) { DialogHelper.WriteDialog(ConsoleColor.Red, ConsoleColor.Black, 102, 0, 50, $"Name: {player?.Name}", $"Race: {player?.Race.Name}", $"Gender: {player?.Gender}", $"Class: {player?.Class.Name}"); redrawCharacterInfo = false; } foreach (Entities.Agent.NPCBase npc in map.Agents) { ConsoleHelper.Write("XXXXXXXXXXXXXXXXXXXX", ConsoleColor.Black, ConsoleColor.Black); Console.CursorLeft = 0; Console.Write($"{npc.Name}: x={npc.X},y={npc.Y}"); Console.WriteLine(); } } }
protected override void Render() { if (!bigTextRendered) { ConsoleHelper.AltClear(); ConsoleHelper.WTF_WriteLine(Program.GameTitle); bigTextRendered = true; } else { Console.CursorTop = 18; } ConsoleHelper.Write("xxxxx", ConsoleColor.Black, ConsoleColor.Black); ConsoleHelper.WriteLine("Game Options", ConsoleColor.Cyan); int index = 0; foreach (var option in options) { ConsoleHelper.Write("xxxxx", ConsoleColor.Black, ConsoleColor.Black); if (selected == index) { ConsoleHelper.Write(option, ConsoleColor.Red, ConsoleColor.Black); } else { ConsoleHelper.Write(option, ConsoleColor.Gray, ConsoleColor.Black); } //▓░ if (option == musicVolumeLabel) { var gauge = new string('▓', musicVolume).PadRight(10, '░'); ConsoleHelper.Write(gauge, ConsoleColor.Red, ConsoleColor.Black); } if (option == soundVolumeLabel) { var gauge = new string('▓', soundVolume).PadRight(10, '░'); ConsoleHelper.Write(gauge, ConsoleColor.Red, ConsoleColor.Black); } if (option == textToSpeechLabel) { var gauge = new string('▓', speechVolume).PadRight(10, '░'); ConsoleHelper.Write(gauge, ConsoleColor.Red, ConsoleColor.Black); } Console.WriteLine(); index++; } }
protected override void Render() { if (!bigTextRendered) { ConsoleHelper.AltClear(); ConsoleHelper.WTF_WriteLine(Program.GameTitle); bigTextRendered = true; } else { Console.CursorTop = 18; } base.Render(); }
protected override void Render() { if (!bigTextRendered) { ConsoleHelper.AltClear(); ConsoleHelper.WTF_WriteLine(Program.GameTitle); bigTextRendered = true; } else { Console.CursorTop = 18; } ConsoleHelper.Write("xxxxx", ConsoleColor.Black, ConsoleColor.Black); ConsoleHelper.WriteLine("CharacterCreation Options", ConsoleColor.Cyan); base.Render(); }
/// <summary> /// never allow Rendering outside the render function PERIOD!!! i did that earlier and it caused me no end of problems... /// This structure is LAW violations will be punished with firey doom! /// Only Render flags are allowd! /// </summary> protected override void Render() { if (renderFireSliderFlag) { renderFireSlider(); renderStatsBox(); } if (RenderEarthSliderFlag) { RenderEarthSlider(); renderStatsBox(); } if (RenderChaosSliderFlag) { RenderChaosSlider(); renderStatsBox(); } if (RenderDarkSliderFlag) { RenderDarkSlider(); renderStatsBox(); } if (!bigTextRendered) { ConsoleHelper.AltClear(); ConsoleHelper.WTF_WriteLine(Program.GameTitle); bigTextRendered = true; //ConsoleHelper.Write("xxxxx", ConsoleColor.Black, ConsoleColor.Black); Console.CursorLeft += 5; ConsoleHelper.WriteLine("CharacterCreation Options", ConsoleColor.Cyan); renderStatsBox(); } else { Console.SetCursorPosition(0, 19); } base.Render(); }