Can now rename entities pressing f2 or double clicking and selecting an entity should unfold the tree

This commit is contained in:
Antoine Pilote
2024-08-16 17:59:06 -04:00
parent 9c2a6f9019
commit 27488ae5bf
6 changed files with 89 additions and 4 deletions

View File

@@ -15,6 +15,8 @@
#include "../Commands/ICommand.h"
#include "MapImporterWindow.h"
#include <src/Scripting/ScriptingEngineNet.h>
using namespace NuakeEditor;
namespace Nuake
@@ -25,6 +27,7 @@ namespace Nuake
class EditorInterface
{
private:
std::vector<CompilationError> errors;
Ref<Scene> SceneSnapshot;
NuakeEditor::CommandBuffer* mCommandBuffer;
@@ -36,6 +39,8 @@ namespace Nuake
bool m_ShowOverlay = true;
bool m_IsHoveringViewport = false;
bool m_IsViewportFocused = false;
bool m_IsRenaming = false;
bool m_ShouldUnfoldEntityTree = false;
bool m_ShowTrenchbroomConfigurator = false;
bool m_ShowMapImporter = false;