diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-23 04:12:07 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-23 04:12:07 +0200 |
| commit | 0666c70c480c4a258a25802d8bfb87f368a599ea (patch) | |
| tree | 34bd33e467648469289033adc791739dad7cf672 /src/game | |
| parent | 22e89e8a409703dc64fa23b3fdc6975ef5fd04f5 (diff) | |
| download | jancity-0666c70c480c4a258a25802d8bfb87f368a599ea.tar.gz | |
Implement checkbox GUI element
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/src/res.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/src/res.c b/src/game/src/res.c index da07f96..23103a0 100644 --- a/src/game/src/res.c +++ b/src/game/src/res.c @@ -7,6 +7,7 @@ #include <gui/button.h> #include <gui/line_edit.h> #include <gui/rounded_rect.h> +#include <gui/checkbox.h> #include <resource.h> #include <terrain.h> #include <unit.h> @@ -273,6 +274,15 @@ static const struct container c[] = { .sprite = &gui_line_edit_sprites[GUI_LINE_EDIT_RIGHT] } + }, + + { + .path = "checkbox", + .type = CONTAINER_TYPE_SPRITE, + .data = + { + .sprite = &gui_checkbox_sprite + } } }; |
