Table of Contents

Class UIExtender

Namespace
Bannerlord.UIExtenderEx
Assembly
Bannerlord.UIExtenderEx.dll

Client class instance of which should be created for each module using this library

public class UIExtender
Inheritance
UIExtender
Inherited Members

Constructors

UIExtender(string)

Default constructor. moduleName should match module folder because it will be used to look-up resources

[Obsolete("Use UIExtender.Create(moduleName) if backwards compatibility is not a concern.", false)]
public UIExtender(string moduleName)

Parameters

moduleName string

Module name, should match module folder

Methods

Create(string)

public static UIExtender Create(string moduleName)

Parameters

moduleName string

Returns

UIExtender

Deregister()

public void Deregister()

Disable()

public void Disable()

Disable(Type)

public void Disable(Type type)

Parameters

type Type

Enable()

public void Enable()

Enable(Type)

public void Enable(Type type)

Parameters

type Type

GetUIExtenderFor(string)

public static UIExtender? GetUIExtenderFor(string moduleName)

Parameters

moduleName string

Returns

UIExtender

Register()

Obsolete. Use Register(Assembly).

[Obsolete("Use explicit call Register(Assembly)", true)]
public void Register()

Register(IEnumerable<Type>)

Register extension types Should be called during OnSubModuleLoad

public void Register(IEnumerable<Type> types)

Parameters

types IEnumerable<Type>

Register(Assembly)

Register extension types from specified assembly Should be called during OnSubModuleLoad

public void Register(Assembly assembly)

Parameters

assembly Assembly

This page was last modified at 02/06/2024 11:12:36 +02:00 (UTC).

Commit Message
Author:    Vitalii Mikhailov
Commit:    bad6c5e372a12e5546a351dfc72721b46e979474
* Disabled the BETA changes due to regression

* Added back the old UIExtender constructor for backwards compatibility