sprite

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Editor

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

Editor is for drawing Sprites and managing Sprite Sets

func NewEditor

func NewEditor() *Editor

NewEditor creates a new Sprite Editor and populates its GUI

func (*Editor) Draw

func (e *Editor) Draw(screen *ebiten.Image)

Draw renders Sprite Editor to a screen

func (*Editor) Exit

func (e *Editor) Exit() (done bool, err error)

Exit checks for unsaved state and starts the process of shutting down

func (*Editor) Save

func (e *Editor) Save() error

Save writes out any changes to the current SpriteSet

func (*Editor) Update

func (e *Editor) Update() error

Update checks for all updates in the internal state of the Sprite Editor

type FileBar

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

FileBar is a toolbar for file operation related to SpriteSets

func NewFileBar

func NewFileBar(x, y int, colors *model.Palette) *FileBar

NewFileBar creates a new FileBar for the Sprite Editor

func (*FileBar) Draw

func (b *FileBar) Draw(screen *ebiten.Image)

Draw renders FileBar to a screen

func (*FileBar) Update

func (b *FileBar) Update() error

Update checks for all updates in the internal toolbar

type ToolBar

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

ToolBar is a toolbar for file operation related to SpriteSets

func NewToolBar

func NewToolBar(x, y int, colors *model.Palette) *ToolBar

NewToolBar creates a new ToolBar for the Sprite Editor

func (*ToolBar) Draw

func (b *ToolBar) Draw(screen *ebiten.Image)

Draw renders ToolBar to a screen

func (*ToolBar) Update

func (b *ToolBar) Update() error

Update checks for all updates in the internal toolbar

Jump to

Keyboard shortcuts

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