LambdaHack-0.8.1.2: A game engine library for tactical squad ASCII roguelike dungeon crawlers

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.UI.Overlay

Contents

Description

Screen overlays.

Synopsis

AttrLine

type AttrLine = [AttrCharW32] Source #

Line of colourful text.

fgToAL :: Color -> Text -> AttrLine Source #

Render line of text in the given foreground colour.

Overlay

type Overlay = [AttrLine] Source #

A series of screen lines that either fit the width of the screen or are intended for truncation when displayed. The length of overlay may exceed the length of the screen, unlike in SingleFrame. An exception is lines generated from animation, which have to fit in either dimension.

type IntOverlay = [(Int, AttrLine)] Source #

Sparse screen overlay representation where only the indicated rows are overlayed and the remaining rows are kept unchanged.

splitAttrLine :: X -> AttrLine -> Overlay Source #

Split a string into lines. Avoids ending the line with a character other than whitespace or punctuation. Space characters are removed from the start, but never from the end of lines. Newlines are respected.

Misc

data ColorMode Source #

Color mode for the display.

Constructors

ColorFull

normal, with full colours

ColorBW

black and white only

Instances
Eq ColorMode Source # 
Instance details

Defined in Game.LambdaHack.Client.UI.Overlay

Internal operations