refactor: rename ui_editor to editor for consistency
This commit is contained in:
26
editor/src/panels/ProjectPanel.h
Normal file
26
editor/src/panels/ProjectPanel.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include "Panel.h"
|
||||
#include "Core/AssetItem.h"
|
||||
|
||||
namespace UI {
|
||||
|
||||
class ProjectPanel : public Panel {
|
||||
public:
|
||||
ProjectPanel();
|
||||
void Render() override;
|
||||
void Initialize(const std::string& projectPath);
|
||||
|
||||
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";
|
||||
int m_contextMenuIndex = -1;
|
||||
std::string m_draggingPath;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user