Skip to content
Snippets Groups Projects
Commit fde119f9 authored by alexis's avatar alexis
Browse files

menu de sauvegarde

parent 467cf91d
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
......@@ -137,10 +137,17 @@ void MenuManager::loadingScreen(){
(windowWidth - options_width) / 2,
(windowHeight - options_height) / 2,
options_width, options_height),
NK_WINDOW_BORDER | NK_WINDOW_CLOSABLE | NK_WINDOW_NO_SCROLLBAR
NK_WINDOW_BORDER | NK_WINDOW_CLOSABLE
)){
float ratio[] = {0.5f, 0.5f};
nk_layout_row(ctx, NK_DYNAMIC, options_height, 2, ratio);
std::string path = "./";
for (const auto & entry : std::filesystem::directory_iterator(path)){
nk_layout_row_dynamic(ctx,50,1);
nk_button_label(ctx,"nokzs lvl2 16h32");
}
}
else{
showLoadingSave=false;
......@@ -164,15 +171,15 @@ void MenuManager::Options(){
nk_layout_row_dynamic(ctx,35,1);
if (nk_checkbox_label(ctx, "Afficher les FPS",&showFPS)) {
game->setShowFPS(1 - showFPS);
}
nk_spacer(ctx);
nk_group_end(ctx);
}
/*if (nk_group_begin_titled(ctx,"effet","Effet des branches",NK_WINDOW_TITLE))
if (nk_group_begin_titled(ctx,"effet","Effet des branches",NK_WINDOW_TITLE))
{
nk_layout_row_dynamic(ctx,35,1);
if (nk_checkbox_label(ctx, "Afficher Effet",&afficherEffet)) {
......@@ -180,7 +187,7 @@ void MenuManager::Options(){
}
nk_spacer(ctx);
nk_group_end(ctx);
}*/
}
}
else{
showOptions = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment