diff options
| author | Physcik <mynameisgennadiy@vk.com> | 2026-02-01 16:29:13 +0500 |
|---|---|---|
| committer | Physcik <mynameisgennadiy@vk.com> | 2026-02-01 16:29:13 +0500 |
| commit | b4bb2cc1de2004153a1357e2e6678df7377b42e3 (patch) | |
| tree | 47d4dd062550582aa5b6eaef9b25dba09798ace7 /engine/UI/Style.go | |
| parent | 95b7170acdfa73c5842db002ec64f78125fe2f90 (diff) | |
UI button
Diffstat (limited to 'engine/UI/Style.go')
| -rw-r--r-- | engine/UI/Style.go | 7 |
1 files changed, 7 insertions, 0 deletions
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 + } } |
