Table of Contents

Class WikiLinkButtonExtensions

Namespace
MonkeyLoader.Resonite.UI
Assembly
MonkeyLoader.Resonite.Core.dll

Contains extension methods to setup FrooxEngine.IButtons with links to the Resonite Wiki, which are triggerable by anyone.

public static class WikiLinkButtonExtensions
Inheritance
WikiLinkButtonExtensions
Inherited Members

Methods

WithWikiLinkFor<TButton>(TButton, IWorker)

Sets up an FrooxEngine.IButton with a FrooxEngine.Hyperlink to the wiki page for the given worker.

public static TButton WithWikiLinkFor<TButton>(this TButton button, IWorker worker) where TButton : IButton

Parameters

button TButton

The button to set up with a wiki link.

worker IWorker

The worker to the link the wiki page for.

Returns

TButton

The unchanged button.

Type Parameters

TButton

The specific type of the button.

Remarks

This method automatically sets a tooltip and reason for opening the link.

Sets up an FrooxEngine.IButton with a FrooxEngine.Hyperlink to the given wiki page, optionally setting the reason for opening it.

public static TButton WithWikiLink<TButton>(this TButton button, string page, in LocaleString reason = default) where TButton : IButton

Parameters

button TButton

The button to set up with a wiki link.

page string

The wiki page to link to.

reason LocaleString

The optional reason for opening the link.

Returns

TButton

The unchanged button.

Type Parameters

TButton

The specific type of the button.