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

Game.LambdaHack.Client.UI.Overlay

Description

Screen overlays.

Synopsis

# AttrLine

type AttrLine = [AttrCharW32] Source #

Line of colourful text.

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.

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

 Source # Methods