summaryrefslogtreecommitdiff
path: root/engine/main.go
diff options
context:
space:
mode:
authorPhyscik <mynameisgennadiy@vk.com>2026-02-02 02:00:29 +0500
committerPhyscik <mynameisgennadiy@vk.com>2026-02-02 02:00:29 +0500
commit7383f73a5b1589d3257b44407e46adfe987e2530 (patch)
tree8848132dea8f270df9d38ad508792b333b16aae2 /engine/main.go
parentb4bb2cc1de2004153a1357e2e6678df7377b42e3 (diff)
Span system rework pt 1
Diffstat (limited to 'engine/main.go')
-rw-r--r--engine/main.go15
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" },
},
},
},