Table of Contents

Class PrefabRuntimes

Namespace
Bannerlord.UIExtenderEx.Runtimes
Assembly
Bannerlord.UIExtenderEx.dll

Coordinates registered prefab runtimes and exposes shared runtime capabilities.

When no runtimes are registered, all movies fall back to the native Gauntlet XML loader with all patches applied. Registered runtimes act strictly as performance optimizations, serving pre-compiled or dynamically compiled widget trees where applicable.

public static class PrefabRuntimes
Inheritance
PrefabRuntimes
Inherited Members

Properties

DottedAttributePathsResolve

Gets or sets whether the XML loader resolves dotted attribute paths exceeding two segments (enabled via the XML runtime's patch). Runtimes constructing widgets independently mirror this path resolution logic.

public static bool DottedAttributePathsResolve { get; set; }

Property Value

bool

IsMovieSwitchInstalled

Gets or sets whether the Harmony prefix on GauntletMovie.Load is active. The switch coordinates variant selection across runtimes; if absent, runtimes must not register or preload compiled variants.

public static bool IsMovieSwitchInstalled { get; }

Property Value

bool

Methods

IsRuntimeVariant(Assembly)

Determines whether any registered runtime claims ownership of the specified variant assembly.

public static bool IsRuntimeVariant(Assembly variantAssembly)

Parameters

variantAssembly Assembly

Returns

bool

Register(IPrefabRuntime)

Registers an IPrefabRuntime implementation. Runtimes are evaluated in registration order (SubModule.xml loading order), allowing the game runtime to inspect native variants prior to triggering background compilation. Registering an existing runtime has no effect.

public static void Register(IPrefabRuntime runtime)

Parameters

runtime IPrefabRuntime

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...