ui

package
v0.0.0-...-09bd2b9 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: BSD-3-Clause Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HeightPx float32 = engine.LawnLength*100 + topMenuPx

HeightPx represents game display height in pixels (varies as window size changes)

View Source
var WidthPx float32 = engine.LawnLength * 100

WidthPx represents game display width in pixels (varies as window size changes)

Functions

This section is empty.

Types

type Ui

type Ui struct {
	// contains filtered or unexported fields
}

Ui struct contains main elements of the ui

func NewUi

func NewUi(w *app.Window) *Ui

NewUi returns an initialized Ui struct

func (*Ui) Loop

func (u *Ui) Loop() error

Loop is the main ui loop which constantly draws frames and handles input

Jump to

Keyboard shortcuts

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