mirror of
https://github.com/antopilo/Nuake.git
synced 2026-01-04 22:10:34 +03:00
Now bindings works automatically and is smoooth, aslo strings work now
This commit is contained in:
@@ -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"))
|
||||
|
||||
@@ -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 });
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -100,4 +100,3 @@ project "Editor"
|
||||
filter "configurations:Release"
|
||||
runtime "Release"
|
||||
optimize "on"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user