Namespace Bannerlord.UIExtenderEx.Prefabs2
Classes
- PrefabExtensionInsertPatch
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:
- PrefabExtensionInsertPatch.PrefabExtensionContentAttribute
Used on a single Property or Method in PrefabExtensionInsertPatch to flag it as containing the patch information.
Supported Types:- stringRepresents either the name of a file (use PrefabExtensionInsertPatch.PrefabExtensionFileNameAttribute), or xml (use PrefabExtensionInsertPatch.PrefabExtensionTextAttribute).
- XmlDocumentUse PrefabExtensionInsertPatch.PrefabExtensionXmlDocumentAttribute. The root node of the document and all of its children will be inserted at the target location.
- XmlNodeUse PrefabExtensionInsertPatch.PrefabExtensionXmlNodeAttribute. The node and all of its children will be inserted at the target location.
- IEnumerable<T> of type XmlNodeUse PrefabExtensionInsertPatch.PrefabExtensionXmlNodesAttribute. Nodes will be inserted in the same order that they appear in this list at the target location.
- PrefabExtensionInsertPatch.PrefabExtensionFileNameAttribute
Used when Content is of type string and refers to a file name.
The file should have an extension of type .xml, and be located inside of the GUI folder of your module.
You can include or omit the extension type. I.e. both of the following will work:- YourPatchFileName
- YourPatchFileName.xml
- PrefabExtensionInsertPatch.PrefabExtensionTextAttribute
Use when the property or return of your method is of type string and is xml.
The xml must be properly formatted with a single root node.
If RemoveRootNode is set to false, the root node of the document, as well as all of its children, will be inserted at the target location.
If RemoveRootNode is set to true, the root node of the document will be ignored, and all of the root node's children will be placed at the target location instead.
See PrefabExtensionInsertPatch.PrefabExtensionContentAttribute for more info.
- PrefabExtensionInsertPatch.PrefabExtensionXmlDocumentAttribute
Use when the property or return of your method is of type XmlDocument.
If RemoveRootNode is set to false, the root node of the document, as well as all of its children, will be inserted at the target location.
If RemoveRootNode is set to true, the root node of the document will be ignored, and all of the root node's children will be placed at the target location instead.
See PrefabExtensionInsertPatch.PrefabExtensionContentAttribute for more info.
- PrefabExtensionInsertPatch.PrefabExtensionXmlNodeAttribute
Use when the property or return of your method is of type XmlNode.
The node and all of its children will be inserted at the target location.
If RemoveRootNode is set to false, the root node of the document, as well as all of its children, will be inserted at the target location.
If RemoveRootNode is set to true, the root node of the document will be ignored, and all of the root node's children will be placed at the target location instead.
See PrefabExtensionInsertPatch.PrefabExtensionContentAttribute for more info.
- PrefabExtensionInsertPatch.PrefabExtensionXmlNodesAttribute
Use when the property or return of your method is of type IEnumerable{XmlNode}.
Nodes will be inserted in the same order that they appear in this list at the target location.
See PrefabExtensionInsertPatch.PrefabExtensionContentAttribute for more info.
- PrefabExtensionSetAttributePatch
Patch that adds or replaces node's attributes specified by XPath with node from prefab extension
Structs
Enums
This page was last modified at 07/29/2024 16:56:14 +00:00 (UTC).