From 7383f73a5b1589d3257b44407e46adfe987e2530 Mon Sep 17 00:00:00 2001 From: Physcik Date: Mon, 2 Feb 2026 02:00:29 +0500 Subject: Span system rework pt 1 --- engine/main.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'engine/main.go') diff --git a/engine/main.go b/engine/main.go index 0d2e657..ea29794 100644 --- a/engine/main.go +++ b/engine/main.go @@ -42,14 +42,17 @@ func menu_test() *ui.Menu { PaddingX: 0.05, PaddingY: 0.1, Spacing: 0.025, - Rows: []*ui.GridRow { - { + Rows: []ui.UIElement { + &ui.GridRow { HeightWeight: 1, + Spacing: 0.01, Objects: []ui.UIElement { - &ui.Label{ Text: "Ruines of Rafdolon" }, + &ui.Label{ Text: "First piece" }, + &ui.Label{ Text: "Wide piece", WidthWeight: 2 }, + &ui.Label{ Text: "Another piece" }, }, }, - { + &ui.GridRow { HeightWeight: 2, Objects: []ui.UIElement { &ui.Button { @@ -63,10 +66,10 @@ func menu_test() *ui.Menu { }, }, }, - { + &ui.GridRow { HeightWeight: 1, Objects: []ui.UIElement { - &ui.Label{ Text: "Test text" }, + &ui.Label{ Text: "A very very long text that is bigger than a window" }, }, }, }, -- cgit v1.3