hsdt1editor

package
v0.0.0-...-667d129 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package hsdt1editor contains dt1 editor's data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(config *hsconfig.Config,
	textureLoader hscommon.TextureLoader,
	pathEntry *hscommon.PathEntry,
	state []byte,
	data *[]byte, x, y float32, project *hsproject.Project) (hscommon.EditorWindow, error)

Create creates new dt1 editor

Types

type DT1Editor

type DT1Editor struct {
	*hseditor.Editor
	// contains filtered or unexported fields
}

DT1Editor represents a dt1 editor

func (*DT1Editor) Build

func (e *DT1Editor) Build()

Build prepares the editor for rendering, but does not actually render it

func (*DT1Editor) Cleanup

func (e *DT1Editor) Cleanup()

Cleanup hides editor

func (*DT1Editor) GenerateSaveData

func (e *DT1Editor) GenerateSaveData() []byte

GenerateSaveData generates data to be saved

func (*DT1Editor) KeyboardShortcuts

func (e *DT1Editor) KeyboardShortcuts() []g.WindowShortcut

KeyboardShortcuts register a new keyboard shortcut

func (*DT1Editor) Save

func (e *DT1Editor) Save()

Save saves editor

func (*DT1Editor) UpdateMainMenuLayout

func (e *DT1Editor) UpdateMainMenuLayout(l *g.Layout)

UpdateMainMenuLayout updates main menu layout to it contains editors options

Jump to

Keyboard shortcuts

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