Table of Contents

Class BankWindowLinks

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

Buttons modules add to the bank window's footer: the Housing module's "House vault".

public static class BankWindowLinks
Inheritance
BankWindowLinks
Inherited Members

The bank's own controls are in its UXML; a module's link is not, so removing the module removes the button with it. Each button starts hidden: every time the bank opens it calls OnBankShown with a setter, and the module shows the button (now or when it has asked the server) only when there is something behind it. A module registers once, before the first scene loads ([RuntimeInitializeOnLoadMethod]).

Properties

The links in order.

public static IReadOnlyList<BankWindowLinks.Link> All { get; }

Property Value

IReadOnlyList<BankWindowLinks.Link>

Methods

Adds (or replaces, by id) a link.

public static void Register(string id, string label, int order, Action onClick, Action<Action<bool>> onBankShown)

Parameters

id string
label string
order int
onClick Action
onBankShown Action<Action<bool>>

Removes a link; false when there was none with that id.

public static bool Unregister(string id)

Parameters

id string

Returns

bool