From 0666c70c480c4a258a25802d8bfb87f368a599ea Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Fri, 23 Sep 2022 04:12:07 +0200 Subject: Implement checkbox GUI element --- src/game/src/res.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/game') 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 #include #include +#include #include #include #include @@ -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 + } } }; -- cgit v1.2.3