Table of Contents

Class PrefabExtensionInsertPatch.PrefabExtensionFileNameAttribute

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

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.
protected sealed class PrefabExtensionInsertPatch.PrefabExtensionFileNameAttribute : PrefabExtensionInsertPatch.PrefabExtensionSingleContentAttribute
Inheritance
PrefabExtensionInsertPatch.PrefabExtensionFileNameAttribute
Inherited Members

Constructors

PrefabExtensionFileNameAttribute(bool)

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.
public PrefabExtensionFileNameAttribute(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