debug

package
v0.0.0-...-bf68151 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebugPanel

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

func NewDebugPanel

func NewDebugPanel(game *gamestate.Game, entityType DebugPanelType) *DebugPanel

func (*DebugPanel) Draw

func (d *DebugPanel) Draw(screen *ebiten.Image)

func (*DebugPanel) DrawBox

func (d *DebugPanel) DrawBox(screen *ebiten.Image, padding, x, y, w, h int, text string, state int)

func (*DebugPanel) DrawItems

func (d *DebugPanel) DrawItems(screen *ebiten.Image, startIndex int, items []*data.VariableItem) int

func (*DebugPanel) RowCount

func (d *DebugPanel) RowCount() int

func (*DebugPanel) Update

func (d *DebugPanel) Update(sceneManager *scene.Manager) error

type DebugPanelType

type DebugPanelType string
const (
	DebugPanelTypeSwitch   DebugPanelType = "switch"
	DebugPanelTypeVariable DebugPanelType = "variable"
)

type NumberInput

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

func NewNumberInput

func NewNumberInput() *NumberInput

func (*NumberInput) SetValue

func (n *NumberInput) SetValue(value int)

func (*NumberInput) Text

func (n *NumberInput) Text() string

func (*NumberInput) Update

func (n *NumberInput) Update()

func (*NumberInput) Value

func (n *NumberInput) Value() int

Jump to

Keyboard shortcuts

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