/
Landilf
/
2413_Ryumin_CourseWork
Обзор
Документация
Войти
/
Landilf
/
2413_Ryumin_CourseWork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
CourseWork/ConsoleUI/Views/PauseMenuView.cs
37 строк
872 B
Landilf
add project
27 янв 2026, 13:57
27 янв 2026, 13:57
753b3e7
Код
Авторство
О чём код?
using GameCore.Resources; namespace ConsoleUI.Views; /// <summary> /// Представление меню паузы. /// </summary> public static class PauseMenuView { public static void Draw(string[] parItems, int parSelectedIndex) { Console.SetCursorPosition(0, 0); Console.Clear(); Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine($@" {Strings.PauseMenuTitle} "); Console.ResetColor(); for (int i = 0; i < parItems.Length; i++) { if (i == parSelectedIndex) { Console.ForegroundColor = ConsoleColor.Black; Console.BackgroundColor = ConsoleColor.White; Console.WriteLine($@" > {parItems[i]} < "); Console.ResetColor(); } else { Console.ForegroundColor = ConsoleColor.White; Console.WriteLine($@" {parItems[i]} "); } } } }