editor

package
v0.0.0-...-fe76f8b Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 12 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 {
	Z int

	Label string
	// contains filtered or unexported fields
}

func NewEditor

func NewEditor(x, y int) *Editor

func (*Editor) CanZoom

func (e *Editor) CanZoom() bool

func (*Editor) DragFromUi

func (e *Editor) DragFromUi(pixelX, pixelY int) (string, int)

func (*Editor) Eval

func (e *Editor) Eval(command string) (interface{}, error)

func (*Editor) Events

func (e *Editor) Events(delta float64, fadeDir int, mouseX, mouseY, mouseWorldX, mouseWorldY, mouseWorldZ, mouseButtonDown int32, mouseOnInteractive bool)

func (*Editor) Exit

func (e *Editor) Exit()

func (*Editor) GetZ

func (e *Editor) GetZ() int

func (*Editor) Init

func (e *Editor) Init(app *gfx.App, config map[string]interface{})

func (*Editor) InitBScript

func (e *Editor) InitBScript(app *gfx.App)

func (*Editor) Loading

func (e *Editor) Loading(working bool)

func (*Editor) Name

func (e *Editor) Name() string

func (*Editor) RunFx

func (e *Editor) RunFx(name string)

func (*Editor) SectionLoad

func (e *Editor) SectionLoad(sx, sy int, data map[string]interface{})

func (*Editor) SectionSave

func (e *Editor) SectionSave(x, y int) map[string]interface{}

func (*Editor) SetEditorLabel

func (e *Editor) SetEditorLabel(label string)

func (*Editor) SetShape

func (e *Editor) SetShape(x, y, z int, shape *shapes.Shape, skipEdge bool)

func (*Editor) ViewSize

func (e *Editor) ViewSize() int

func (*Editor) Walk

func (e *Editor) Walk(sx, sy int)

Jump to

Keyboard shortcuts

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