Added Welcome screen
Fixed for c++ 20
This commit is contained in:
antopilo
2022-06-23 20:43:32 -04:00
parent 511e5dfb16
commit 7ba865ef14
9 changed files with 311 additions and 144 deletions

View File

@@ -52,6 +52,7 @@ namespace Nuake {
EditorInterface::EditorInterface()
{
filesystem = new FileSystemUI(this);
_WelcomeWindow = new WelcomeWindow(this);
}
void EditorInterface::Init()
@@ -1502,15 +1503,11 @@ namespace Nuake {
Ref<Scene> SceneSnapshot;
WelcomeWindow window = WelcomeWindow();
void EditorInterface::Draw()
{
Init();
auto flags = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_AlwaysAutoResize;
if (ImGui::BeginPopupModal("Welcome", NULL, flags))
{
ImGui::Text("Welcome to Nuake Engine");
@@ -1533,7 +1530,7 @@ namespace Nuake {
if (!Engine::GetProject())
{
ImGui::OpenPopup("Welcome");
_WelcomeWindow->Draw();
return;
}