editor

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestHook

func RequestHook(ctx *context.Context) scene.Scene[*context.Context]

func SceneKey

func SceneKey() scene.Key

Types

type Editor

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

func New

func New(ctx *context.Context) (*Editor, error)

func (*Editor) DrawHiRes

func (self *Editor) DrawHiRes(canvas *ebiten.Image, foremost bool, ctx *context.Context)

func (*Editor) DrawLogical

func (self *Editor) DrawLogical(canvas *ebiten.Image, foremost bool, ctx *context.Context)

func (*Editor) Update

func (self *Editor) Update(ctx *context.Context) (*scene.Change, error)

type JumpToOption

type JumpToOption struct {
	Editor    *Editor
	JumpMapID int
}

func (*JumpToOption) Confirm

func (self *JumpToOption) Confirm(ctx *context.Context) (menu.Key, *scene.Change, error)

func (*JumpToOption) HoverUpdate

func (self *JumpToOption) HoverUpdate(ctx *context.Context)

func (*JumpToOption) MaxName

func (self *JumpToOption) MaxName() string

func (*JumpToOption) Name

func (self *JumpToOption) Name() string

func (*JumpToOption) SoftHighlight

func (self *JumpToOption) SoftHighlight(ctx *context.Context) bool

type TileBar

type TileBar struct {
	GroupIndex  int
	CursorIndex int
	Orientation tile.Orientation
	Variations  []uint8
}

func (*TileBar) CurrentLayer

func (self *TileBar) CurrentLayer() int

func (*TileBar) CurrentTile

func (self *TileBar) CurrentTile() tile.Tile

Notice: Row and Column fields must be manually set.

func (*TileBar) CurrentTileID

func (self *TileBar) CurrentTileID() uint8

func (*TileBar) DrawLogical

func (self *TileBar) DrawLogical(canvas *ebiten.Image, ctx *context.Context)

func (*TileBar) ResetVariations

func (self *TileBar) ResetVariations()

func (*TileBar) Update

func (self *TileBar) Update(ctx *context.Context)

type TileOption

type TileOption struct {
	Label        string
	MinTile      int
	MaxTile      int
	CurrentTile  int
	NotifyChange func(*context.Context, int)
}

func (*TileOption) Confirm

func (self *TileOption) Confirm(ctx *context.Context) (menu.Key, *scene.Change, error)

func (*TileOption) HoverUpdate

func (self *TileOption) HoverUpdate(ctx *context.Context)

func (*TileOption) MaxName

func (self *TileOption) MaxName() string

func (*TileOption) Name

func (self *TileOption) Name() string

func (*TileOption) SoftHighlight

func (self *TileOption) SoftHighlight(ctx *context.Context) bool

type TransferOption

type TransferOption struct {
	Label         string
	Editor        *Editor
	AssignedID    uint8
	TransferIndex uint8
}

func (*TransferOption) Confirm

func (self *TransferOption) Confirm(ctx *context.Context) (menu.Key, *scene.Change, error)

func (*TransferOption) HoverUpdate

func (self *TransferOption) HoverUpdate(ctx *context.Context)

func (*TransferOption) MaxName

func (self *TransferOption) MaxName() string

func (*TransferOption) Name

func (self *TransferOption) Name() string

func (*TransferOption) SoftHighlight

func (self *TransferOption) SoftHighlight(ctx *context.Context) bool

Jump to

Keyboard shortcuts

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