config

package
v0.9.2-beta Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	File        = "config.unitehud"
	MainDisplay = "Main Display"
)

Variables

This section is empty.

Functions

func Load

func Load() error

func Reset

func Reset() error

Types

type Config

type Config struct {
	Window     string
	LostWindow string `json:"-"`
	Record     bool   `json:"-"` // Record all matched images and logs.
	Balls      image.Rectangle
	Map        image.Rectangle
	Scores     image.Rectangle
	Time       image.Rectangle
	Filenames  map[string]map[string][]filter.Filter     `json:"-"`
	Templates  map[string]map[string][]template.Template `json:"-"`
	Scales     Scales
	Dir        string
	Acceptance float32
	// contains filtered or unexported fields
}
var Current Config

func (Config) Reload

func (c Config) Reload()

func (Config) Save

func (c Config) Save() error

func (Config) Scoring

func (c Config) Scoring() image.Rectangle

type Scales

type Scales struct {
	Score float64
	Time  float64
	Balls float64
	Game  float64
}

func (Scales) Is16x9

func (s Scales) Is16x9() bool

func (Scales) Is4x3

func (s Scales) Is4x3() bool

func (*Scales) To16x9

func (s *Scales) To16x9()

func (*Scales) To4x3

func (s *Scales) To4x3()

Jump to

Keyboard shortcuts

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