nouveau menu

This commit is contained in:
cyjullien1
2025-01-05 21:37:06 +01:00
parent 316f32807c
commit 969f60327d

View File

@@ -377,32 +377,32 @@ int inGameLoop (char **tab2d, vect *dim_tab, vect *playerPos, vect *targets,
if (indice_button <= 3) if (indice_button <= 3)
{ {
snprintf (txt_button, 50, snprintf (txt_button, 50,
"Voulez-vous faire le niveau Original %d ?", " - : Niveau %d : - ",
indice_button); indice_button);
} }
else if (indice_button == dim_tab->y / 5) else if (indice_button == dim_tab->y / 5)
{ {
snprintf (txt_button, 50, snprintf (txt_button, 50,
"Voulez-vous faire une map Custom (%d)?", " - : Creer un niveau %d : - ",
indice_button - 3); indice_button - 3);
} }
else else
{ {
snprintf (txt_button, 50, snprintf (txt_button, 50,
"Voulez-vous faire le niveau Custom %d ?", " - : Niveau custom %d : - ",
indice_button - 3); indice_button - 3);
} }
displayTextSDL (display_user, txt_button, coor_time, displayTextSDL (display_user, txt_button, coor_time,
size_txt, 50); size_txt, 30);
} }
else else
{ {
vect size_txt = { display_user->size_menu, vect size_txt = { display_user->size_menu,
display_user->size_window }; display_user->size_window };
char txt_empty[100] char txt_empty[100]
= "Echap pour quitter "; = " - : Echap pour quitter : - ";
displayTextSDL (display_user, txt_empty, coor_time, displayTextSDL (display_user, txt_empty, coor_time,
size_txt, 80); size_txt, 30);
} }
} }
} }