You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the following class for an example integration. Change with your own name and actions for the button as desired.
using System;
[JITWhenModsEnabled("ModReloader")]
public class ExampleModReloaderButtonIntegration : ModPlayer
{
public override void OnEnterWorld()
{
if (ModLoader.TryGetMod("ModReloader", out Mod MR))
{
MR.Call(
"AddButton",
"UIEditor", // your name
() => Main.NewText("UIEditor"), // your action
Assets.DragonLensToolIcon, // asset (the preview image has none provided)
"Edit UI layout" // your tooltip
);
}
}
}