Table of Contents

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:

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
See PrefabExtensionInsertPatch.PrefabExtensionContentAttribute for info on other attribute types.
PrefabExtensionInsertPatch.PrefabExtensionSingleContentAttribute
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

PrefabExtensionSetAttributePatch.Attribute

Enums

InsertType

This page was last modified at 07/29/2024 16:56:14 +00:00 (UTC).