Table of Contents

Class PrefabExtensionInsertPatch.PrefabExtensionXmlNodeAttribute

Namespace
Bannerlord.UIExtenderEx.Prefabs2
Assembly
Bannerlord.UIExtenderEx.dll

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.

protected sealed class PrefabExtensionInsertPatch.PrefabExtensionXmlNodeAttribute : PrefabExtensionInsertPatch.PrefabExtensionSingleContentAttribute
Inheritance
PrefabExtensionInsertPatch.PrefabExtensionXmlNodeAttribute
Inherited Members

Constructors

PrefabExtensionXmlNodeAttribute(bool)

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.

public PrefabExtensionXmlNodeAttribute(bool removeRootNode = false)

Parameters

removeRootNode bool

If set to true, the root node of will be removed.
This is useful when you wish to insert multiple nodes at the same level (as siblings) from a single patch.


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