summaryrefslogtreecommitdiffstats
path: root/src/splash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/splash.c')
-rw-r--r--src/splash.c33
1 files changed, 32 insertions, 1 deletions
diff --git a/src/splash.c b/src/splash.c
index c6ee9c8..93dbc3d 100644
--- a/src/splash.c
+++ b/src/splash.c
@@ -29,6 +29,30 @@
#include "util.h"
static int
+_mf_splash_size(void *user_data, int state)
+{
+ switch (state) {
+ case 0:
+ SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
+ "Size: 15x15");
+ break;
+ case 1:
+ SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
+ "Size: 20x20");
+ break;
+ case 2:
+ SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
+ "Size: 30x30");
+ break;
+ default:
+ SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
+ "Size: unknown");
+ break;
+ }
+ return 0;
+}
+
+static int
_mf_splash_fow(void *user_data, int state)
{
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "Fog of war: %s",
@@ -103,9 +127,16 @@ mf_splash(SDL_Renderer *renderer)
box = mftk_box_new(MF_WINDOW_W, MF_WINDOW_H, 0, 0, MF_SPLASH_FORM_P,
&form_color,
- mftk_grid_new(4, 1, MF_SPLASH_TITLE_M, 0,
+ mftk_grid_new(5, 1, MF_SPLASH_TITLE_M, 0,
mftk_label_new(title_font, "Maze Fight",
&text_color, renderer),
+ mftk_radio_new(MF_SPLASH_CHK_BTN_W,
+ MF_SPLASH_CHK_BTN_P, &chkb_color,
+ &chkm_color, MF_SPLASH_CHK_LBL_P,
+ MF_SPLASH_CHK_ITM_P, text_font,
+ &text_color, _mf_splash_size, NULL,
+ renderer, 0, 3, "15x15", "20x20",
+ "30x30"),
mftk_check_new(MF_SPLASH_CHK_BTN_W,
MF_SPLASH_CHK_BTN_P, &chkb_color,
&chkm_color, SDL_TRUE,