diff options
Diffstat (limited to 'engine/main.go')
| -rw-r--r-- | engine/main.go | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/engine/main.go b/engine/main.go index b1a2be1..50e0326 100644 --- a/engine/main.go +++ b/engine/main.go @@ -8,6 +8,7 @@ import ( dynamic "github.com/DegustatorPonos/RuinesOfRafdolon/Dynamic" render "github.com/DegustatorPonos/RuinesOfRafdolon/Render" settings "github.com/DegustatorPonos/RuinesOfRafdolon/Settings" + ui "github.com/DegustatorPonos/RuinesOfRafdolon/UI" ) func main() { @@ -28,6 +29,37 @@ func main() { // var field = descriptor.GenerateMap() + var manager = coreobjects.InitSceneManager() - render.StartLoop(manager, components.Resources.Worlds["MainWorld"]) + // render.StartLoop(manager, components.Resources.Worlds["MainWorld"]) + var menu = menu_test() + render.StartLoop(manager, menu) +} + +func menu_test() *ui.Menu { + return &ui.Menu{ + PaddingX: 0.05, + PaddingY: 0.1, + Spacing: 0.025, + Rows: []*ui.GridRow { + { + HeightWeight: 1, + Objects: []ui.UIElement { + &ui.Label{ Text: "Ruines of Rafdolon" }, + }, + }, + { + HeightWeight: 1, + Objects: []ui.UIElement { + &ui.Label{ Text: "Ruines of Rafdolon" }, + }, + }, + { + HeightWeight: 1, + Objects: []ui.UIElement { + &ui.Label{ Text: "Test text" }, + }, + }, + }, + } } |
