Class BankWindowLinks
Buttons modules add to the bank window's footer: the Housing module's "House vault".
public static class BankWindowLinks
- Inheritance
-
BankWindowLinks
- Inherited Members
Remarks
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
All
The links in order.
public static IReadOnlyList<BankWindowLinks.Link> All { get; }
Property Value
Methods
Register(string, string, int, Action, Action<Action<bool>>)
Adds (or replaces, by id) a link.
public static void Register(string id, string label, int order, Action onClick, Action<Action<bool>> onBankShown)
Parameters
Unregister(string)
Removes a link; false when there was none with that id.
public static bool Unregister(string id)
Parameters
idstring