Added TODO markers for testing asset trash

master
Joey Pollack 4 years ago
parent 4a84ca0bcd
commit 595adb717c

@ -8,6 +8,7 @@ Editor:
✔ Reference raw asset files in a "content" folder@high @done (3/3/2022, 3:15:32 PM) ✔ Reference raw asset files in a "content" folder@high @done (3/3/2022, 3:15:32 PM)
✔ Platform independant file browsing @done (2/8/2022, 4:05:29 PM) ✔ Platform independant file browsing @done (2/8/2022, 4:05:29 PM)
☐ Test the Asset Trashing system @high ☐ Test the Asset Trashing system @high
☐ Add ability to browse and restore trashed assets
☐ Scan script files to make sure they don't overwrite globals ☐ Scan script files to make sure they don't overwrite globals
☐ Figure out how to make game asset types integrate with editor asset types @critical ☐ Figure out how to make game asset types integrate with editor asset types @critical

@ -205,11 +205,18 @@ namespace editor
ImGui::Text("%s", (*iter)->GetFileLocation().stem().string().c_str()); ImGui::Text("%s", (*iter)->GetFileLocation().stem().string().c_str());
ImGui::EndDragDropSource(); ImGui::EndDragDropSource();
} }
if (ImGui::IsItemHovered() && ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) if (ImGui::IsItemHovered() && ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left))
{ {
// TODO: Open relevant editor // TODO: Open relevant editor
Logger::Info(Editor::LogCat, "Asset double clicked on. Relevant editor should open!"); Logger::Info(Editor::LogCat, "Asset double clicked on. Relevant editor should open!");
} }
if (ImGui::IsItemHovered() && ImGui::IsMouseClicked(ImGuiMouseButton_Right))
{
// TODO: CONTEXT MENU FOR ITEMS - Test Removing/Trashing
}
} }
DoContentContextMenu(); DoContentContextMenu();

Loading…
Cancel
Save