LambdaHack-0.7.0.0: A game engine library for roguelike dungeon crawlers

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.UI.KeyBindings

Description

Verifying, aggregating and displaying binding of keys to commands.

Synopsis

Documentation

data Binding Source #

Bindings and other information about human player commands.

Constructors

Binding 

Fields

stdBinding Source #

Arguments

:: KeyKind

default key bindings from the content

-> UIOptions

UI client options

-> Binding

concrete binding

Create binding of keys to movement and other standard commands, as well as commands defined in the config file.

keyHelp :: Binding -> Int -> [(Text, OKX)] Source #

Produce a set of help/menu screens from the key bindings.

okxsN :: Binding -> Int -> Int -> (HumanCmd -> Bool) -> CmdCategory -> [Text] -> [Text] -> OKX Source #

Turn the specified portion of bindings into a menu.