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
buttonTButtonThe button to set up with a wiki link.
workerIWorkerThe worker to the link the wiki page for.
Returns
- TButton
The unchanged button.
Type Parameters
TButtonThe specific type of the button.
Remarks
This method automatically sets a tooltip and reason for opening the link.
WithWikiLink<TButton>(TButton, string, in LocaleString)
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
buttonTButtonThe button to set up with a wiki link.
pagestringThe wiki page to link to.
reasonLocaleStringThe optional reason for opening the link.
Returns
- TButton
The unchanged button.
Type Parameters
TButtonThe specific type of the button.