diff options
Diffstat (limited to 'engine/main.go')
| -rw-r--r-- | engine/main.go | 15 |
1 files changed, 9 insertions, 6 deletions
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" }, }, }, }, |
