Class LeaderboardButtonBar
Owns a leaderboard view's built buttons: their focus (LeaderboardButtonFocus) and what
running the focused one does (LeaderboardButtonActionRunner). Polls keyboard/gamepad
navigation and confirm input in Tick() the same way CascadeMenuRenderer.Tick does,
including its same-frame arming guard so the input that opened the view is not immediately consumed as a
button press; mouse submit instead flows through each handle's own Submitted.
Inherited Members
Namespace: Serenity.Leaderboard.Infrastructure.Views
Assembly: Serenity.UnityLeaderboard.Infrastructure.dll
Syntax
public sealed class LeaderboardButtonBar
Constructors
LeaderboardButtonBar(IReadOnlyList<LeaderboardButtonHandle>, LeaderboardButtonActionRunner)
Declaration
public LeaderboardButtonBar(IReadOnlyList<LeaderboardButtonHandle> handles, LeaderboardButtonActionRunner runner)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<LeaderboardButtonHandle> | handles | |
| LeaderboardButtonActionRunner | runner |
Methods
Blur()
Clears focus. Call from the view's Hide.
Declaration
public void Blur()
FocusFirst()
Focuses the first non-hidden button and re-arms input polling. Call from the view's Show.
Declaration
public void FocusFirst()
Tick()
Polls navigation and confirm input. Call once per frame while the view is shown.
Declaration
public void Tick()