|
|
|
|
@ -59,6 +59,7 @@ namespace editor
|
|
|
|
|
ImGui::SetCursorPosY(row_height);
|
|
|
|
|
if (ImGui::BeginChild("Directory Tree", ImVec2(wind_size.x * 0.15f, wind_size.y), true, ImGuiWindowFlags_NoCollapse))
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ImGui::SetNextItemOpen(true);
|
|
|
|
|
DoDirTree(mAssetDirectory);
|
|
|
|
|
mSyncTree = false;
|
|
|
|
|
@ -69,6 +70,7 @@ namespace editor
|
|
|
|
|
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + wind_size.x * 0.15f);
|
|
|
|
|
|
|
|
|
|
// Contents
|
|
|
|
|
|
|
|
|
|
DoContentArea(wind_size);
|
|
|
|
|
|
|
|
|
|
//HandlePopupActions();
|
|
|
|
|
@ -137,11 +139,12 @@ namespace editor
|
|
|
|
|
{
|
|
|
|
|
if (std::filesystem::exists(mSelectedDir))
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
float yPos = ImGui::GetCursorPosY();
|
|
|
|
|
float xPos = ImGui::GetCursorPosX();
|
|
|
|
|
float left = xPos;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ImGui::BeginChild("ToolBar", ImVec2(0, ImGui::GetFrameHeightWithSpacing() * 1.5f));
|
|
|
|
|
ImGui::PushFont(GUI::GetInstance().GetFont(GuiFont::FONT_ROBO_SMALL));
|
|
|
|
|
ImGui::TextUnformatted(mpEditor->GetProject()->MakeRelativeToAssets(mSelectedDir, true).string().c_str());
|
|
|
|
|
@ -162,6 +165,7 @@ namespace editor
|
|
|
|
|
ImVec2(DataManager::mNewFolderIcon->GetWidth(), DataManager::mNewFolderIcon->GetHeight()),
|
|
|
|
|
ImVec2(0, 0), ImVec2(1, 1), 4))
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
OpenPopup(PopUp::NEW_FOLDER).LogIfFailed(Editor::LogCat);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -169,7 +173,7 @@ namespace editor
|
|
|
|
|
|
|
|
|
|
ImGui::Separator();
|
|
|
|
|
ImGui::BeginChild("Files");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// List directories
|
|
|
|
|
for (auto const &dir_entry : std::filesystem::directory_iterator{mSelectedDir})
|
|
|
|
|
{
|
|
|
|
|
@ -226,7 +230,7 @@ namespace editor
|
|
|
|
|
// TODO: CONTEXT MENU FOR ITEMS - Test Removing/Trashing
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DoContentContextMenu();
|
|
|
|
|
|
|
|
|
|
ImGui::EndChild();
|
|
|
|
|
|