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.
22 lines
518 B
Go
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)))
|
|
}
|