components

package
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Actor

func Actor(session *game.Session, actor game.Actor, enemy *game.Enemy, showStatus bool, showHp bool, active bool, additional ...string) string

func ArtifactCard

func ArtifactCard(session *game.Session, guid string, baseHeight int, width int) string

func Error added in v0.1.6

func Error(width int, height int, msg string) string

func HalfCard

func HalfCard(session *game.Session, guid string, active bool, baseHeight int, maxHeight int, minimal bool, width int, checkCasting bool) string
func Header(width int, values []HeaderValue, desc string, other ...string) string

func StatusEffect

func StatusEffect(session *game.Session, guid string) string

func StatusEffects

func StatusEffects(session *game.Session, actor game.Actor) string

Types

type HeaderValue

type HeaderValue struct {
	Text  string
	Color lipgloss.Color
}

func NewHeaderValue

func NewHeaderValue(text string, color lipgloss.Color) HeaderValue

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL