Class GameMenuEntries
The game menu's optional destinations, added by modules (Leaderboards adds "Leaderboards").
public static class GameMenuEntries
- Inheritance
-
GameMenuEntries
- Inherited Members
Remarks
The menu's own buttons (Resume, Options, Channels, Dungeon, the quits) are in its UXML; a module's button is
not, so removing the module removes the button with it and leaves nothing in the menu that names it. A module
registers once, before the first scene loads ([RuntimeInitializeOnLoadMethod]); the menu lays the
entries out in Order where its menu-module-entries element stands.
Properties
All
The entries in menu order.
public static IReadOnlyList<GameMenuEntries.Entry> All { get; }
Property Value
Methods
Register(string, string, int, Action)
Adds (or replaces, by id) a menu destination.
public static void Register(string id, string label, int order, Action onClick)
Parameters
Unregister(string)
Removes a menu destination; false when there was none with that id.
public static bool Unregister(string id)
Parameters
idstring
Returns
Events
Changed
Raised when an entry is added, replaced or removed.
public static event Action Changed