2026-03-20 17:08:06 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "Panel.h"
|
|
|
|
|
#include "Core/AssetItem.h"
|
2026-03-26 21:18:33 +08:00
|
|
|
#include "UI/PopupState.h"
|
2026-03-20 17:08:06 +08:00
|
|
|
|
2026-03-24 20:02:38 +08:00
|
|
|
namespace XCEngine {
|
|
|
|
|
namespace Editor {
|
2026-03-20 17:08:06 +08:00
|
|
|
|
|
|
|
|
class ProjectPanel : public Panel {
|
|
|
|
|
public:
|
|
|
|
|
ProjectPanel();
|
|
|
|
|
void Render() override;
|
|
|
|
|
void Initialize(const std::string& projectPath);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void RenderAssetItem(const AssetItemPtr& item, int index);
|
|
|
|
|
|
|
|
|
|
char m_searchBuffer[256] = "";
|
2026-03-26 21:18:33 +08:00
|
|
|
UI::TextInputPopupState<256> m_createFolderDialog;
|
2026-03-27 12:06:24 +08:00
|
|
|
UI::DeferredPopupState m_emptyContextMenu;
|
2026-03-26 23:52:05 +08:00
|
|
|
UI::TargetedPopupState<AssetItemPtr> m_itemContextMenu;
|
2026-03-20 17:08:06 +08:00
|
|
|
};
|
|
|
|
|
|
2026-03-24 20:02:38 +08:00
|
|
|
}
|
2026-03-26 21:18:33 +08:00
|
|
|
}
|