Class PrefabExtensionInsertPatch
- Namespace
- Bannerlord.UIExtenderEx.Prefabs2
- Assembly
- Bannerlord.UIExtenderEx.dll
Patch that inserts Content relative to the target node specified in the XPath property.
A single Method or Property should be flagged with the PrefabExtensionInsertPatch.PrefabExtensionContentAttribute.
Content Attribute Types:
public abstract class PrefabExtensionInsertPatch
- Inheritance
-
PrefabExtensionInsertPatch
- Inherited Members
Properties
Index
Only used when Type is set to Child or ReplaceKeepChildren.
See Type for more details.
public virtual int Index { get; }
Property Value
Type
InsertType specifies the placement of the content flagged by your PrefabExtensionInsertPatch.PrefabExtensionContentAttribute
relative to the target node specified in the XPath property.
Insertion Methods
- PrependContent is placed before the target node at the same height (siblings).
- ReplaceKeepChildrenTarget node is replaced with the new Content. The children of the original node are added as children to the newly inserted Content. If Content represents more than one root node, Index will be used to specify which new node should inherit the children.
- ReplaceTarget node and all of its children are replaced with the new Content.
- ChildContent is inserted as a child (children) of the target node. If the target node has children, Index will be used to place the new nodes relative to the pre-existing children.
- AppendContent is placed after the target node at the same height (siblings).
- RemoveRemoves the node.
public abstract InsertType Type { get; }
Property Value
This page was last modified at 01/07/2024 15:42:12 +02:00 (UTC).
Commit Message
Author: Vitalii Mikhailov
Commit: 8e7791fbf43426d6f22c8d8e79438b8b61407146
new UIExtender replcaed with UIExtender.Create
Added the ability to disable specific Prefabs and Mixins
Added the ability to deregister UIExtender
Added the ability to get another mods UIExtender
Updated PUML diagrams