mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Added copy filename option to content browser context menu
This commit is contained in:
@@ -902,15 +902,22 @@ namespace GlitchyEditor.EditWindows
|
|||||||
ImGui.SetClipboardText(fileOrFolder->Path);
|
ImGui.SetClipboardText(fileOrFolder->Path);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui.AttachTooltip("Copies the full file path of this asset.");
|
ImGui.AttachTooltip(scope $"Copies the full file path of this asset.\n(\"{fileOrFolder->Path}\")");
|
||||||
|
|
||||||
|
if (ImGui.MenuItem("File name"))
|
||||||
|
{
|
||||||
|
ImGui.SetClipboardText(fileOrFolder->Name);
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGui.AttachTooltip(scope $"Copies the file name of this asset.\n(\"{fileOrFolder->Name}\")");
|
||||||
|
|
||||||
if (ImGui.MenuItem("Asset identifier"))
|
if (ImGui.MenuItem("Asset identifier"))
|
||||||
{
|
{
|
||||||
ImGui.SetClipboardText(fileOrFolder->Identifier.FullIdentifier.Ptr);
|
ImGui.SetClipboardText(fileOrFolder->Identifier.FullIdentifier.Ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui.AttachTooltip("Copies the identifier of this asset.");
|
ImGui.AttachTooltip(scope $"Copies the identifier of this asset.\n(\"{fileOrFolder->Identifier.FullIdentifier}\")");
|
||||||
|
|
||||||
ImGui.EndMenu();
|
ImGui.EndMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user