aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-20 17:22:10 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-20 17:34:25 +0200
commit8f9737b776bf98d0686a2f11685d1e307b2ef390 (patch)
tree261c2e64e6af535d7428ef57f9ea41e591ebbb68 /src/game
parente3356fde2de41b29989b4e8884f04b2be763256f (diff)
downloadrts-8f9737b776bf98d0686a2f11685d1e307b2ef390.tar.gz
Implement GUI line edit
Diffstat (limited to 'src/game')
-rw-r--r--src/game/src/res.c28
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;