From 45b7d0ce612921729d925a7111e4d1aeba3ef849 Mon Sep 17 00:00:00 2001 From: Physcik Date: Thu, 29 Jan 2026 21:48:23 +0500 Subject: GUI layout init --- engine/UI/Label.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 engine/UI/Label.go (limited to 'engine/UI/Label.go') diff --git a/engine/UI/Label.go b/engine/UI/Label.go new file mode 100644 index 0000000..f0a3c97 --- /dev/null +++ b/engine/UI/Label.go @@ -0,0 +1,21 @@ +package ui + +import rl "github.com/gen2brain/raylib-go/raylib" + +type Label struct { + Text string +} + +func (base *Label) Init(Menu) { +} + +func (base *Label) Destroy() { +} + +func (base *Label) Update() { +} + +func (base *Label) Draw(position *rl.Rectangle) { + // rl.TraceLog(rl.LogInfo, "Drawn at %v/%v/%v/%v", position.X, position.Y, position.Width, position.Height) + rl.DrawRectangleRec(*position, rl.Green) +} -- cgit v1.3