ui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultColor is the default color of the text.
	DefaultColor = color.RGBA{200, 200, 200, 255}
	// HighlightColor is used to highlight selected options.
	HighlightColor = color.RGBA{255, 255, 0, 255}
	// TransparentBlack is a semi-transparent black color for overlays.
	TransparentBlack = color.RGBA{0, 0, 0, 128}
)

nolint:revive,gochecknoglobals

Functions

func DrawSplash

func DrawSplash(screen *ebiten.Image, font *font.Font, screenWidth float64)

DrawSplash draws the splash screen.

func DrawWaitingConnection

func DrawWaitingConnection(screen *ebiten.Image, font *font.Font, screenWidth float64)

DrawWaitingConnection draws the waiting connection screen.

Types

type Text

type Text struct {
	Value    string
	Position geometry.Vector
	Color    color.RGBA
	FontFace text.Face
}

Text represents a text to be drawn on the screen.

func (*Text) Draw

func (t *Text) Draw(screen *ebiten.Image)

Draw draws the text on the screen.

Jump to

Keyboard shortcuts

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