Refactor editor UI architecture

This commit is contained in:
2026-03-26 21:18:33 +08:00
parent 8f486611d5
commit 6467d87b81
60 changed files with 2994 additions and 1403 deletions

View File

@@ -2,6 +2,7 @@
#include "Panel.h"
#include "Core/AssetItem.h"
#include "UI/PopupState.h"
namespace XCEngine {
namespace Editor {
@@ -14,15 +15,12 @@ public:
private:
void RenderAssetItem(const AssetItemPtr& item, int index);
void CreateNewFolder(const std::string& name);
bool HandleDrop(const AssetItemPtr& targetFolder);
char m_searchBuffer[256] = "";
bool m_showCreateFolderPopup = false;
char m_newFolderName[256] = "NewFolder";
UI::TextInputPopupState<256> m_createFolderDialog;
int m_contextMenuIndex = -1;
std::string m_draggingPath;
};
}
}
}