Now bindings works automatically and is smoooth, aslo strings work now

This commit is contained in:
antopilo
2025-04-04 19:01:01 -04:00
parent a516f09cf5
commit 5bb4303eff
19 changed files with 91 additions and 34 deletions

View File

@@ -91,6 +91,11 @@ LaunchSettings ParseLaunchSettings(const std::vector<std::string>& arguments)
launchSettings.monitor = stoi(arguments[i + 1]);
}
}
else if (arg == "--generate-bindings")
{
// Set editor window monitor
launchSettings.generateBindings = true;
}
else if (argumentSize == 2 && Nuake::FileSystem::FileExists(arg))
{
if (Nuake::String::EndsWith(arg, ".project"))

View File

@@ -7,6 +7,7 @@
#include "Nuake/UI/NuakeUI.h"
#include "Nuake/UI/UIInputManager.h"
#include "Nuake/Modules/ModuleDB.h"
void EditorApplication::OnInit()
{
@@ -14,7 +15,14 @@ void EditorApplication::OnInit()
Engine::Init();
// Register bakers, these can convert files into nuake resources
if (m_LaunchSettings.generateBindings)
{
ModuleDB::Get().GenerateModuleAPI();
Logger::Log("Generated Bindings");
m_Window->Close();
return;
}
m_Window = Engine::GetCurrentWindow();
m_Window->SetSize({ m_Specification.WindowWidth, m_Specification.WindowHeight });

View File

@@ -5,6 +5,7 @@
struct LaunchSettings
{
int32_t monitor = 1;
bool generateBindings = false;
Nuake::Vector2 resolution = { 1100, 630 };
std::string windowTitle = "Nuake Editor ";
std::string projectPath;

View File

@@ -100,4 +100,3 @@ project "Editor"
filter "configurations:Release"
runtime "Release"
optimize "on"