From 95b7170acdfa73c5842db002ec64f78125fe2f90 Mon Sep 17 00:00:00 2001 From: Physcik Date: Fri, 30 Jan 2026 03:04:43 +0500 Subject: Text formation --- engine/main.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'engine/main.go') diff --git a/engine/main.go b/engine/main.go index 50e0326..7df8cae 100644 --- a/engine/main.go +++ b/engine/main.go @@ -9,6 +9,7 @@ import ( render "github.com/DegustatorPonos/RuinesOfRafdolon/Render" settings "github.com/DegustatorPonos/RuinesOfRafdolon/Settings" ui "github.com/DegustatorPonos/RuinesOfRafdolon/UI" + rl "github.com/gen2brain/raylib-go/raylib" ) func main() { @@ -49,9 +50,14 @@ func menu_test() *ui.Menu { }, }, { - HeightWeight: 1, + HeightWeight: 2, Objects: []ui.UIElement { - &ui.Label{ Text: "Ruines of Rafdolon" }, + &ui.Label{ + Text: "Center div", + Style: ui.Style{ + BacgroundColor: &rl.Pink, + }, + }, }, }, { -- cgit v1.3