mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 12:44:19 +01:00
Heavily improve changed item display.
This commit is contained in:
parent
1ebe4099d6
commit
deba8ac910
30 changed files with 360 additions and 126 deletions
|
|
@ -25,7 +25,6 @@ public class ResourceTreeViewer(
|
|||
private const ResourceTreeFactory.Flags ResourceTreeFactoryFlags =
|
||||
ResourceTreeFactory.Flags.RedactExternalPaths | ResourceTreeFactory.Flags.WithUiData | ResourceTreeFactory.Flags.WithOwnership;
|
||||
|
||||
private readonly CommunicatorService _communicator = communicator;
|
||||
private readonly HashSet<nint> _unfolded = [];
|
||||
|
||||
private readonly Dictionary<nint, NodeVisibility> _filterCache = [];
|
||||
|
|
@ -278,7 +277,7 @@ public class ResourceTreeViewer(
|
|||
if (ImGui.IsItemClicked())
|
||||
ImGui.SetClipboardText(resourceNode.FullPath.ToPath());
|
||||
if (hasMod && ImGui.IsItemClicked(ImGuiMouseButton.Right) && ImGui.GetIO().KeyCtrl)
|
||||
_communicator.SelectTab.Invoke(TabType.Mods, mod);
|
||||
communicator.SelectTab.Invoke(TabType.Mods, mod);
|
||||
|
||||
ImGuiUtil.HoverTooltip(
|
||||
$"{resourceNode.FullPath.ToPath()}\n\nClick to copy to clipboard.{(hasMod ? "\nControl + Right-Click to jump to mod." : string.Empty)}{GetAdditionalDataSuffix(resourceNode.AdditionalData)}");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue