diff options
| author | Physcik <mynameisgennadiy@vk.com> | 2026-01-29 21:48:23 +0500 |
|---|---|---|
| committer | Physcik <mynameisgennadiy@vk.com> | 2026-01-29 21:48:23 +0500 |
| commit | 45b7d0ce612921729d925a7111e4d1aeba3ef849 (patch) | |
| tree | e8abfd366e046c9b7205cb5452dcd0615dc75c08 /engine/main.go | |
| parent | 9c10e3ab194115f50f0d67044ef34d386be7fa9a (diff) | |
GUI layout init
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" }, + }, + }, + }, + } } |
