Editor improvements

- Can now copy nuake.net dll in debug build
- Scrolling outside the viewport wont move the editor cam
- Can now double click to to open .sln files
- Right arrow now works in file system panel
This commit is contained in:
Antoine Pilote
2023-10-21 14:41:52 -04:00
parent 1ccd338fc6
commit 978b0a2f84
6 changed files with 60 additions and 39 deletions

View File

@@ -216,7 +216,7 @@ namespace Nuake
return m_EntityToManagedObjects.find(entity.GetID()) != m_EntityToManagedObjects.end();
}
void ScriptingEngineNet::GenerateSolution(const std::string& path, const std::string& projectName)
void ScriptingEngineNet::CopyNuakeNETAssemblies(const std::string& path)
{
// Create .Net directory in projects folder.
const auto netDirectionPath = '/' + m_NetDirectory + '/';
@@ -236,6 +236,11 @@ namespace Nuake
{
std::filesystem::copy_file(fileToCopy, netDir + fileToCopy, std::filesystem::copy_options::overwrite_existing);
}
}
void ScriptingEngineNet::GenerateSolution(const std::string& path, const std::string& projectName)
{
CopyNuakeNETAssemblies(path);
// Generate premake5 templates
// ----------------------------------------

View File

@@ -55,6 +55,7 @@ namespace Nuake {
Coral::ManagedObject GetEntityScript(const Entity& entity);
bool HasEntityScriptInstance(const Entity& entity);
void CopyNuakeNETAssemblies(const std::string& path);
void GenerateSolution(const std::string& path, const std::string& projectName);
void CreateEntityScript(const std::string& path, const std::string& entityName);
};