hscofeditor

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

Documentation

Overview

Package hscofeditor contains cof 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 cof editor

Types

type COFEditor

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

COFEditor represents a cof editor

func (*COFEditor) Build

func (e *COFEditor) Build()

Build builds a cof editor

func (*COFEditor) Cleanup

func (e *COFEditor) Cleanup()

Cleanup hides an editor

func (*COFEditor) GenerateSaveData

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

GenerateSaveData generates data to be saved

func (*COFEditor) Save

func (e *COFEditor) Save()

Save saves an editor

func (*COFEditor) UpdateMainMenuLayout

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

UpdateMainMenuLayout updates a main menu layout, to it contains COFViewer's settings

Jump to

Keyboard shortcuts

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