ui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package ui provides tools for working with the user interface.

Index

Constants

View Source
const (
	// MenuButtonPlayImage is a constant for the image of the play button.
	MenuButtonPlayImage = "MENU_BUTTON_PLAY_IMAGE"

	// MenuButtonReplaysImage is a constant for the image of the replays button.
	MenuButtonReplaysImage = "MENU_BUTTON_REPLAYS_IMAGE"

	// MenuButtonExitImage is a constant for the image of the exit button.
	MenuButtonExitImage = "MENU_BUTTON_EXIT_IMAGE"

	// MenuMainImage is a constant for the image of the main menu.
	MenuMainImage = "MENU_MAIN_IMAGE"

	MenuMainLogoImage = "MENU_MAIN_LOGO_IMAGE"

	// MenuBackgroundImage is a constant for the image of the menu background.
	MenuBackgroundImage = "MENU_BACKGROUND_IMAGE"

	// MenuLeftSidebarImage is a constant for the image of the menu left sidebar.
	MenuLeftSidebarImage = "MENU_LEFT_SIDEBAR_IMAGE"

	// LevelMenuBackButtonImage is a constant for the image of the level menu back button.
	LevelMenuBackButtonImage = "LEVEL_MENU_BACK_BUTTON_IMAGE"
)

Variables

This section is empty.

Functions

func InitColor

func InitColor(s string) (*ebiten.Image, error)

InitColor initializes an image with a color.

func InitImage

func InitImage(s string) (*ebiten.Image, error)

InitImage initializes an image.

func InitPNG

func InitPNG(s string) (*ebiten.Image, error)

InitPNG initializes an image with a PNG file.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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