mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 12:44:19 +01:00
Improve ResourceTree display with new function
This commit is contained in:
parent
dba85f5da3
commit
a36f9ccec7
3 changed files with 26 additions and 2 deletions
|
|
@ -316,7 +316,10 @@ public class ResourceTreeViewer
|
|||
ImGui.TableNextColumn();
|
||||
if (resourceNode.FullPath.FullName.Length > 0)
|
||||
{
|
||||
ImGui.Selectable(resourceNode.FullPath.ToPath(), false, 0, new Vector2(ImGui.GetContentRegionAvail().X, cellHeight));
|
||||
var uiFullPathStr = resourceNode.ModName != null && resourceNode.ModRelativePath != null
|
||||
? $"[{resourceNode.ModName}] {resourceNode.ModRelativePath}"
|
||||
: resourceNode.FullPath.ToPath();
|
||||
ImGui.Selectable(uiFullPathStr, false, 0, new Vector2(ImGui.GetContentRegionAvail().X, cellHeight));
|
||||
if (ImGui.IsItemClicked())
|
||||
ImGui.SetClipboardText(resourceNode.FullPath.ToPath());
|
||||
ImGuiUtil.HoverTooltip(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue