mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-17 21:37:50 +01:00
ResourceTree: Add name/path filter
This commit is contained in:
parent
f4bdbcac53
commit
c7046ec006
3 changed files with 60 additions and 19 deletions
|
|
@ -10,7 +10,6 @@ public class ResourceNode : ICloneable
|
|||
public string? Name;
|
||||
public string? FallbackName;
|
||||
public ChangedItemIcon Icon;
|
||||
public ChangedItemIcon DescendentIcons;
|
||||
public readonly ResourceType Type;
|
||||
public readonly nint ObjectAddress;
|
||||
public readonly nint ResourceHandle;
|
||||
|
|
@ -53,7 +52,6 @@ public class ResourceNode : ICloneable
|
|||
Name = other.Name;
|
||||
FallbackName = other.FallbackName;
|
||||
Icon = other.Icon;
|
||||
DescendentIcons = other.DescendentIcons;
|
||||
Type = other.Type;
|
||||
ObjectAddress = other.ObjectAddress;
|
||||
ResourceHandle = other.ResourceHandle;
|
||||
|
|
|
|||
|
|
@ -116,9 +116,6 @@ public class ResourceTreeFactory(
|
|||
{
|
||||
if (node.Name == parent?.Name)
|
||||
node.Name = null;
|
||||
|
||||
if (parent != null)
|
||||
parent.DescendentIcons |= node.Icon | node.DescendentIcons;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue