Table of Contents

Class PrefabExtensionAttribute

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

Attribute for prefab XML extensions. Extension classes should inherit from one of the IPrefabPatch base classes and should be marked with this attribute

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

Constructors

PrefabExtensionAttribute(string, string?)

Constructor

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

Parameters

movie string

Gauntlet Movie name to extend

xpath string

XPath of the node to operate against (optional)

PrefabExtensionAttribute(string, string?, string?)

Constructor

[Obsolete("AutoGens are globally disabled for now. When the game will be released on Linux/OSX we'll reuse this property again.")]
public PrefabExtensionAttribute(string movie, string? xpath = null, string? autoGenWidgetName = null)

Parameters

movie string

Gauntlet Movie name to extend

xpath string

XPath of the node to operate against (optional)

autoGenWidgetName string

Gauntlet Movie name to prevent from loading as an auto-generated Widget (optional)

Properties

AutoGenWidgetName

Gauntlet Movie name to prevent from loading as an auto-generated Widget (optional)

[Obsolete("AutoGens are globally disabled for now. When the game will be released on Linux/OSX we'll reuse this property again.")]
public string? AutoGenWidgetName { get; }

Property Value

string

Movie

Gauntlet Movie name to extend

public string Movie { get; }

Property Value

string

XPath

XPath of the node to operate against (optional)

public string? XPath { get; }

Property Value

string

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