gui

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENTRY_WIDTH = 120
	BORDER_SIZE = 1
)

Variables

View Source
var (
	TEXT_COLOR   = color.White
	BORDER_COLOR = color.White
)

Functions

This section is empty.

Types

type GUI

type GUI struct {
	App                 fyne.App
	Main                fyne.Window
	Title               string
	Menu                *fyne.MainMenu
	Save                *save.Savegame
	Backup              bool
	Resources           []Resource
	Research            []NamedCheckbox
	UnlockAllResearch   *widget.Check
	UnlockResearchQueue *widget.Button
	SpaceshipParts      []NamedCheckbox
	OtherOptions        OtherOptions
	ActionButtons       []*widget.Button
}

func New

func New() *GUI

func (*GUI) DisplayError

func (g *GUI) DisplayError(err error)

func (*GUI) ReloadFromSave

func (g *GUI) ReloadFromSave()

func (*GUI) Run

func (g *GUI) Run()

type NamedCheckbox added in v1.1.0

type NamedCheckbox struct {
	Name     string
	Checkbox *widget.Check
}

type OtherOptions

type OtherOptions struct {
	StarterWorker struct {
		Value binding.Int
		Entry *widget.Entry
	}
	HabitatWorkers *widget.Check
	HabitatStorage *widget.Check
	FactoryStorage *widget.Check
	UpgradesOnly   *widget.Check
}

type Resource

type Resource struct {
	Name  string
	Value binding.Int
	Entry *widget.Entry
}

Jump to

Keyboard shortcuts

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