hsds1editor

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: 10 Imported by: 0

Documentation

Overview

Package hsds1editor contains ds1 editor's data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

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

Create creates a new ds1 editor

Types

type DS1Editor

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

DS1Editor represents ds1 editor

func (*DS1Editor) Build

func (e *DS1Editor) Build()

Build builds an editor

func (*DS1Editor) Cleanup

func (e *DS1Editor) Cleanup()

Cleanup hides editor

func (*DS1Editor) GenerateSaveData

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

GenerateSaveData generates data to be saved

func (*DS1Editor) Save

func (e *DS1Editor) Save()

Save saves editors data

func (*DS1Editor) UpdateMainMenuLayout

func (e *DS1Editor) 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