ui

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 5 Imported by: 0

README

UI

This is the ui part of end_of_eden.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var About = `` /* 492-byte string literal not displayed */

About is the about text.

View Source
var Numbers = []string{
	` ██████  
██  ████ 
██ ██ ██ 
████  ██ 
 ██████`,
	` ██ 
███ 
 ██ 
 ██ 
 ██ `,
	`██████  
     ██ 
 █████  
██      
███████ `,
	`██████  
     ██ 
 █████  
     ██ 
██████  `,
	`██   ██ 
██   ██ 
███████ 
     ██ 
     ██`,
	`███████ 
██      
███████ 
     ██ 
███████`,
	` ██████  
██       
███████  
██    ██ 
 ██████`,
	`███████ 
     ██ 
    ██  
   ██   
   ██`,
	` █████  
██   ██ 
 █████  
██   ██ 
 █████`,
	` █████  
██   ██ 
 ██████ 
     ██ 
 █████`,
}

Numbers is a slice of strings that represent the numbers 0-9 in a 5x5 grid.

View Source
var Title = `` /* 652-byte string literal not displayed */

Title is the title of the game.

Functions

func GetNumber added in v0.0.5

func GetNumber(number int) string

GetNumber returns a string representation of a number.

Types

type Menu interface {
	tea.Model
	HasSize() bool
}

Menu is a tea.Model that keeps track of its size. It is intended to trigger the re-distribution of the tea.WindowSizeMsg for nested models.

type MenuBase struct {
	Size      tea.WindowSizeMsg
	LastMouse tea.MouseMsg
}

MenuBase is the base Menu implementation.

func (m MenuBase) HasSize() bool

HasSize returns true if the menu has a saved size.

Jump to

Keyboard shortcuts

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