Documentation ¶
Index ¶
Constants ¶
View Source
const ( Bold_Red = "\x1b[1;31m" Bold_Green = "\x1b[1;32m" Bold_Yellow = "\x1b[1;33m" Red = "\x1b[31m" Reset = "\x1b[0m" )
copied from ansi package
View Source
const MenuItemsPlaceholder = "MENU_ITEMS"
Variables ¶
View Source
var ( MenuKeyRows = strings.Split(menuKeys, "\n") ConfirmKeyRows = strings.Split(confirmOnly, "\n") )
View Source
var Controls = ColorizeFrame(controls, "⿴", Bold_Green, Bold_Red)
View Source
var GameOver = Colorize(ColorizeBetween(gameover, "⿴ ", " ⿴", Bold_Yellow), "⿴", Red)
View Source
var OptionScreen = NewMenuScreen(ColorizeFrame(options, "⿴", Bold_Green, Bold_Red))
View Source
var WelcomeScreen = NewMenuScreen(ColorizeFrame(welcome, "⿴", Bold_Green, Bold_Red))
Functions ¶
func ColorizeBetween ¶
func ColorizeFrame ¶
Types ¶
type MenuScreen ¶
func NewMenuScreen ¶
func NewMenuScreen(source string) MenuScreen
Click to show internal directories.
Click to hide internal directories.