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/UI/Label.go | |
| parent | 9c10e3ab194115f50f0d67044ef34d386be7fa9a (diff) | |
GUI layout init
Diffstat (limited to 'engine/UI/Label.go')
| -rw-r--r-- | engine/UI/Label.go | 21 |
1 files changed, 21 insertions, 0 deletions
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) +} |
