gui

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENTRY_WIDTH = 120
	BORDER_SIZE = 1
)
View Source
const RELEASE = true

Variables

This section is empty.

Functions

This section is empty.

Types

type GUI

type GUI struct {
	App                 fyne.App
	Main                fyne.Window
	Version             Version
	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
}

type Version added in v1.2.0

type Version struct {
	Name, Version, Commit, Go, GameVersion string
}

func NewVersionFromApp added in v1.2.0

func NewVersionFromApp(app fyne.App) Version

func (Version) CreateContent added in v1.2.0

func (v Version) CreateContent() fyne.CanvasObject

Create the content for the version dialog

Jump to

Keyboard shortcuts

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