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/main.go | |
| parent | 95b7170acdfa73c5842db002ec64f78125fe2f90 (diff) | |
UI button
Diffstat (limited to 'engine/main.go')
| -rw-r--r-- | engine/main.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/engine/main.go b/engine/main.go index 7df8cae..0d2e657 100644 --- a/engine/main.go +++ b/engine/main.go @@ -52,10 +52,13 @@ func menu_test() *ui.Menu { { HeightWeight: 2, Objects: []ui.UIElement { - &ui.Label{ - Text: "Center div", - Style: ui.Style{ - BacgroundColor: &rl.Pink, + &ui.Button { + EventType: ui.OnClick, + DisplayElement: &ui.Label { + Text: "Center div", + Style: ui.Style { + BacgroundColor: &rl.White, + }, }, }, }, |
