Table of Contents

Interacting with Other Mods

You can access another mod's UIExtender and modify it to your liking.
At the moment you are able to disable the UIExtender, deregister it (meaning fully disabling it without the ability to enable it back) and enable.
You are able to disable a specific Prefab or Mixin.

// Get Mod Configuration Menu's UIExtender
var mcm = UIExtender.GetUIExtenderFor("MCM.UI");

// Disable a prefab
var mcmPrefab = AccessTools.TypeByName("MCM.UI.UIExtenderEx.OptionsPrefabExtension1");
mcm.Disable(mcmPrefab);

// Disable a Mixin
var mcmMixin = AccessTools.TypeByName("MCM.UI.UIExtenderEx.OptionsVMMixin");
mcm.Disable(mcmMixin);

This page was last modified at 01/08/2024 23:50:28 +02:00 (UTC).

Commit Message
Author:    Vitalii Mikhailov
Commit:    c9b0760a7c40578fabaa38c6367275541de5704f
Fixed GetUIExtenderFor

Added more documentation
Fixed README