add title

pipes2game
MuedeHydra 2024-12-13 00:43:21 +01:00
parent e404159cbe
commit 873f940725
1 changed files with 6 additions and 1 deletions

View File

@ -165,9 +165,14 @@ void print_speedrun(int terminal_width, int terminal_height, int speed_time){
void print_menu(int terminal_width, int terminal_height, int line){
clear_terminal();
printf("Drücke ? für Hilfe\n");
print_blank_lines((terminal_height - 19) / 2);
print_blank_lines((terminal_height - 23) / 2);
int spaces = (terminal_width - 41) / 2;
print_line("╔═══════════════════════════════════════╗", spaces, ";34");
print_line("║ Photonics Helfer ║", spaces, ";34");
print_line("╚═══════════════════════════════════════╝", spaces, ";34");
printf("\n");
print_line("┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓", spaces, (0 <= line && line < 1) ? ";31": ";37");
print_line("┃ 1 Ramen Physik ┃", spaces, (0 <= line && line < 1) ? ";31": ";37");
print_line("┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫", spaces, (0 <= line && line < 2) ? ";31": ";37");