From 45b7d0ce612921729d925a7111e4d1aeba3ef849 Mon Sep 17 00:00:00 2001 From: Physcik Date: Thu, 29 Jan 2026 21:48:23 +0500 Subject: GUI layout init --- engine/main.go | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'engine/main.go') 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" }, + }, + }, + }, + } } -- cgit v1.3