Files
aego/editor/core/assetops/startup.go
sanspie 2fcbaa6c12 Stage 11g1: the editor in Russian (D348)
engine/i18n with catalogs, plural forms and module catalogs; tools/i18n extract and check; the editor UI, menus, panels and notices in Russian with the author's terms; overflow test and tooltip wrapping; the English log.
2026-10-25 15:31:22 +03:00

22 lines
518 B
Go

package assetops
import (
"aego/core/ids"
"aego/editor/core/context"
"aego/engine/i18n"
)
func SetStartup(ctx *context.Editor, id ids.AssetID, rel string) {
if ctx.Project == nil {
return
}
prev := ctx.Project.MainScene
ctx.Project.MainScene = id
if err := ctx.Project.Save(); err != nil {
ctx.Project.MainScene = prev
ctx.Notify(context.LevelError, err.Error())
return
}
ctx.Notify(context.LevelInfo, i18n.Note("editor.assetops.startup_scene_rel", "Startup scene: {rel}", i18n.Str("rel", rel)))
}