From 95b7170acdfa73c5842db002ec64f78125fe2f90 Mon Sep 17 00:00:00 2001 From: Physcik Date: Fri, 30 Jan 2026 03:04:43 +0500 Subject: Text formation --- engine/UI/UIElement.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine/UI/UIElement.go') diff --git a/engine/UI/UIElement.go b/engine/UI/UIElement.go index 86475f7..b6f29ca 100644 --- a/engine/UI/UIElement.go +++ b/engine/UI/UIElement.go @@ -3,9 +3,11 @@ package ui import rl "github.com/gen2brain/raylib-go/raylib" type UIElement interface { - Init(Menu) + Init(*Menu) Destroy() Update() + // Gets the scale width of the element. Works similar to CSS's 'flex-grow' + GetOccupationWeight() float32 // Draw the element with the given size Draw(*rl.Rectangle) } -- cgit v1.3