diff options
Diffstat (limited to 'engine/main.go')
| -rw-r--r-- | engine/main.go | 45 |
1 files changed, 2 insertions, 43 deletions
diff --git a/engine/main.go b/engine/main.go index b9fb611..3b66d09 100644 --- a/engine/main.go +++ b/engine/main.go @@ -5,6 +5,7 @@ import ( "log" "os" + builtin "github.com/DegustatorPonos/RuinesOfRafdolon/Builtin" components "github.com/DegustatorPonos/RuinesOfRafdolon/Components" coreobjects "github.com/DegustatorPonos/RuinesOfRafdolon/CoreObjects" dynamic "github.com/DegustatorPonos/RuinesOfRafdolon/Dynamic" @@ -12,7 +13,6 @@ import ( render "github.com/DegustatorPonos/RuinesOfRafdolon/Render" settings "github.com/DegustatorPonos/RuinesOfRafdolon/Settings" ui "github.com/DegustatorPonos/RuinesOfRafdolon/UI" - rl "github.com/gen2brain/raylib-go/raylib" ) func main() { @@ -33,8 +33,7 @@ func main() { var manager = coreobjects.InitSceneManager() // render.StartLoop(manager, components.Resources.Worlds["MainWorld"]) - var menu = menu_test() - render.StartLoop(manager, menu) + render.StartLoop(manager, builtin.MainMenu()) } func test_desc() (ui.UIElement, error) { @@ -52,43 +51,3 @@ func test_desc() (ui.UIElement, error) { } return parsed, nil } - -func menu_test() *ui.Menu { - var loadedMenu, loadErr = test_desc() - if loadErr != nil { - panic(loadErr.Error()) - } - - var prerender = false - - if !prerender { - return &ui.Menu { - PaddingX: 0.05, - PaddingY: 0.1, - Contents: loadedMenu, - } - } - - return &ui.Menu { - PaddingX: 0.05, - PaddingY: 0.1, - Contents: &ui.GridColumn { - Weight: 2, - Objects: []ui.UIElement { - &ui.Label { - Text: "xdx", - Style: ui.Style { - BacgroundColor: &rl.Pink, - }, - }, - &ui.Label { - Text: "xdx", - Style: ui.Style { - BacgroundColor: &rl.Pink, - }, - }, - }, - }, - } - -} |
