aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-23 04:12:07 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-23 04:12:07 +0200
commit9d3e754f3660e3bd6d13475a7d26e6d1f1e29fbe (patch)
tree8bb4281acdb9648f987f77179f9cbde79747d4bb /src/game
parent467f09e9521e509295211560b57ca9a0119837bd (diff)
downloadrts-9d3e754f3660e3bd6d13475a7d26e6d1f1e29fbe.tar.gz
Implement checkbox GUI element
Diffstat (limited to 'src/game')
-rw-r--r--src/game/src/res.c10
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
+ }
}
};