diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-20 17:22:10 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-20 17:34:25 +0200 |
| commit | 6b54e9be328182d08bfa3e7278e8742493441b94 (patch) | |
| tree | 9fe7974b377c38b0c53af1d5a93d99c9f2c4d428 /src/game | |
| parent | 6867fb76c1e06011f7bb0d8158edd53c23856534 (diff) | |
| download | jancity-6b54e9be328182d08bfa3e7278e8742493441b94.tar.gz | |
Implement GUI line edit
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/src/res.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/game/src/res.c b/src/game/src/res.c index c41af47..da07f96 100644 --- a/src/game/src/res.c +++ b/src/game/src/res.c @@ -5,6 +5,7 @@ #include <gfx.h> #include <gui/bar.h> #include <gui/button.h> +#include <gui/line_edit.h> #include <gui/rounded_rect.h> #include <resource.h> #include <terrain.h> @@ -246,6 +247,33 @@ static const struct container c[] = .sprite = &gui_button_sprites[GUI_BUTTON_RIGHT] } }, + + { + .path = "line_edit_left", + .type = CONTAINER_TYPE_SPRITE, + .data = + { + .sprite = &gui_line_edit_sprites[GUI_LINE_EDIT_LEFT] + } + }, + + { + .path = "line_edit_mid", + .type = CONTAINER_TYPE_SPRITE, + .data = + { + .sprite = &gui_line_edit_sprites[GUI_LINE_EDIT_MID] + } + }, + + { + .path = "line_edit_right", + .type = CONTAINER_TYPE_SPRITE, + .data = + { + .sprite = &gui_line_edit_sprites[GUI_LINE_EDIT_RIGHT] + } + } }; static bool init; |
