hspalettemapeditor

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 hspalettemapeditor contains palette map editor's data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

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

Create creates a new palette map editor

Types

type PaletteMapEditor

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

PaletteMapEditor represents a palette map editor

func (*PaletteMapEditor) Build

func (e *PaletteMapEditor) Build()

Build builds an editor

func (*PaletteMapEditor) Cleanup

func (e *PaletteMapEditor) Cleanup()

Cleanup hides an editor

func (*PaletteMapEditor) GenerateSaveData

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

GenerateSaveData creates data to be saved

func (*PaletteMapEditor) Save

func (e *PaletteMapEditor) Save()

Save saves an editor

func (*PaletteMapEditor) UpdateMainMenuLayout

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

UpdateMainMenuLayout updates a 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