From b4bb2cc1de2004153a1357e2e6678df7377b42e3 Mon Sep 17 00:00:00 2001 From: Physcik Date: Sun, 1 Feb 2026 16:29:13 +0500 Subject: UI button --- engine/UI/Style.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'engine/UI/Style.go') diff --git a/engine/UI/Style.go b/engine/UI/Style.go index 1901e4b..091a6a3 100644 --- a/engine/UI/Style.go +++ b/engine/UI/Style.go @@ -4,10 +4,14 @@ import ( rl "github.com/gen2brain/raylib-go/raylib" ) +// Arguments that UI elements use to render type Style struct { BacgroundColor *rl.Color FontColor *rl.Color Padding *float32 + + // Used in the drawing rectangles. Works like border-radius + Roundness *float32 } // Fills up not specifiend elements with default ones @@ -21,4 +25,7 @@ func (base *Style) FillMissing(defaultStyle *Style) { if base.FontColor == nil { base.FontColor = defaultLabelStyle.FontColor } + if base.Roundness == nil { + base.Roundness = defaultLabelStyle.Roundness + } } -- cgit v1.3