Clips (.aeanim) and controllers (.aectrl) with importers, AnimationPlayer and Animator with crossfades, root motion and events on fixed steps, rewind support. Editor: Animation panel (dope sheet, curves, record, preview, trajectory), Animator panel, sprite sheet slicer and flipbooks, Programming workspace, export panel redesign. Motion 2D ledge climb. 11c: the component and Create palette.
19 lines
348 B
Go
19 lines
348 B
Go
package state
|
|
|
|
import (
|
|
"os"
|
|
|
|
"aego/editor/core/document"
|
|
)
|
|
|
|
const PaletteFile = "palette.aetext"
|
|
|
|
func LoadPalette(root string) ([]byte, bool) {
|
|
data, err := os.ReadFile(userPath(root, PaletteFile))
|
|
return data, err == nil
|
|
}
|
|
|
|
func SavePalette(root string, data []byte) error {
|
|
return document.WriteAtomic(userPath(root, PaletteFile), data)
|
|
}
|