Skip to main content

label

Function label 

Source
pub fn label<'a, G: GameData>(
    ctx: &'a Ctx<G>,
    rows: &[KeyRow<G::Action>],
    action: G::Action,
) -> &'a str
Expand description

The player-facing name of action (its row’s label) in ctx’s language; its keymap name for an action not on the screen (Debug).