ui

package
v0.0.0-...-7aa605c Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HUD

type HUD struct {
}

func (*HUD) Draw

func (hud *HUD) Draw(screen *ebiten.Image, ctx *HUDContext)

type HUDContext

type HUDContext struct {
	Stage       int
	StageKind   core.Stage
	PlayerHP    float64
	PlayerMaxHP float64
	BossHP      float64
	BossMaxHP   float64
	TargetItem  *building.Item
}

type Settings

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

func (*Settings) Draw

func (s *Settings) Draw(screen *ebiten.Image)

func (*Settings) Update

func (s *Settings) Update()

type SplashView

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

func NewSplashView

func NewSplashView() *SplashView

func (*SplashView) Active

func (sv *SplashView) Active() bool

func (*SplashView) Draw

func (sv *SplashView) Draw(screen *ebiten.Image)

func (*SplashView) Update

func (sv *SplashView) Update()

type Stats

type Stats struct {
	Active      bool
	Settings    *Settings
	RestartGame bool
	// contains filtered or unexported fields
}

func NewStats

func NewStats() *Stats

func (*Stats) Disable

func (s *Stats) Disable()

func (*Stats) Draw

func (s *Stats) Draw(screen *ebiten.Image)

func (*Stats) Enable

func (s *Stats) Enable()

func (*Stats) Update

func (s *Stats) Update(ctx *StatsContext)

type StatsContext

type StatsContext struct {
	Title string
	Build *building.Core
}

Jump to

Keyboard shortcuts

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