Table of Contents

Class PrefabExtensionAttribute

Namespace
Bannerlord.UIExtenderEx.Attributes
Assembly
Bannerlord.UIExtenderEx.dll

Marks a class as a prefab XML extension patch targeting a specific Gauntlet movie.

Patch classes must inherit from one of the prefab patch base types (such as PrefabExtensionInsertPatch or PrefabExtensionSetAttributePatch).

[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class PrefabExtensionAttribute : BaseUIExtenderAttribute
Inheritance
PrefabExtensionAttribute
Inherited Members

Constructors

PrefabExtensionAttribute(string, string?)

Initializes a new instance of PrefabExtensionAttribute for a movie and optional target XPath.

public PrefabExtensionAttribute(string movie, string? xpath = null)

Parameters

movie string

The target Gauntlet movie name to extend.

xpath string

The optional XPath expression selecting the target node.

PrefabExtensionAttribute(string, string?, string?)

Initializes a new instance of PrefabExtensionAttribute with legacy widget name parameter.

[Obsolete("Legacy constructor, not used anymore.")]
public PrefabExtensionAttribute(string movie, string? xpath = null, string? autoGenWidgetName = null)

Parameters

movie string

The target Gauntlet movie name to extend.

xpath string

The optional XPath expression selecting the target node.

autoGenWidgetName string

Legacy widget name parameter.

Properties

AutoGenWidgetName

Legacy property preserved for binary backwards compatibility. Has no runtime effect.

[Obsolete("Legacy property, not used anymore.")]
public string? AutoGenWidgetName { get; }

Property Value

string

Movie

Gets the name of the target Gauntlet movie or prefab to patch.

public string Movie { get; }

Property Value

string

XPath

Gets the optional XPath expression selecting the target XML node within the movie.

public string? XPath { get; }

Property Value

string

This page was last modified at 10/05/2026 13:34:58 +03:00 (UTC).

Commit Message
Author:    Vitalii Mikhailov
Commit:    f3b725a97c3f299c20e56b5f206e27142ec15edd
* Added C# Auto-Generated XML prefab compilation for patched and dynamic movies, matching vanilla UI performance

* Added name-based property binding fallback for ViewModel subtypes not declared on the parent
* Improved unparseable prefab error logging with name and file details
* Fixed game crash with 3-segment attribute paths
* Added Bannerlord.UIExtenderE...