mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Fixes
Added Welcome screen Fixed for c++ 20
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user