diff --git a/src/NazaraEditor/Core/Application/Actions/EditorAction_Level_New.cpp b/src/NazaraEditor/Core/Application/Actions/EditorAction_Level_New.cpp index 3075370..67e7b7e 100644 --- a/src/NazaraEditor/Core/Application/Actions/EditorAction_Level_New.cpp +++ b/src/NazaraEditor/Core/Application/Actions/EditorAction_Level_New.cpp @@ -1,10 +1,24 @@ #include #include +#include namespace Nz { void EditorAction_Level_New::Execute() { - Nz::EditorBaseApplication::Instance()->NewLevel(); + Nz::EditorPopupManager::Instance()->CreatePopup({ + .title = "Warning", + .description = "Are you sure you want to create a new level?", + .choices = { + { + .name = "Yes", + .callback = []() { Nz::EditorBaseApplication::Instance()->NewLevel(); } + }, + { + .name = "No" + } + } + }); + } } \ No newline at end of file