From 4bfe5bf14a7b3a470cb1f96655d31649484cbbc7 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 05 Aug 2021 15:55:51 -0400 Subject: splash: Add left column of labels --- (limited to 'src/splash.c') diff --git a/src/splash.c b/src/splash.c index e7ba5b1..317906f 100644 --- a/src/splash.c +++ b/src/splash.c @@ -107,20 +107,24 @@ _mf_splash_form(SDL_Renderer *renderer, const char *font_path, chkm_color.r = MF_COLOR_CHKM_R, chkm_color.g = MF_COLOR_CHKM_G; chkm_color.b = MF_COLOR_CHKM_B, chkm_color.a = MF_COLOR_CHKM_A; - grid = mftk_grid_new(4, 1, MF_SPLASH_ROW_M, 0, + grid = mftk_grid_new(4, 2, MF_SPLASH_ROW_M, MF_SPLASH_COL_M, + mftk_label_new(text_font, "Size", 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_label_new(text_font, "Fog of war", text_color, + renderer), mftk_check_new(MF_SPLASH_CHK_BTN_W, MF_SPLASH_CHK_BTN_P, - &chkb_color, &chkm_color, SDL_TRUE, - MF_SPLASH_CHK_LBL_P, text_font, "Fog of war", - text_color, _mf_splash_fow, NULL, renderer), + &chkb_color, &chkm_color, SDL_TRUE, 0, NULL, + NULL, NULL, _mf_splash_fow, NULL, renderer), + mftk_label_new(text_font, "Reveal maze", text_color, + renderer), mftk_check_new(MF_SPLASH_CHK_BTN_W, MF_SPLASH_CHK_BTN_P, - &chkb_color, &chkm_color, SDL_FALSE, - MF_SPLASH_CHK_LBL_P, text_font, "Reveal maze", - text_color, _mf_splash_reveal, NULL, renderer), + &chkb_color, &chkm_color, SDL_FALSE, 0, NULL, + NULL, NULL, _mf_splash_reveal, NULL, renderer), + mftk_blank_new(), mftk_grid_new(1, 2, 0, MF_SPLASH_BTN_M, mftk_button_new(text_font, "Quit", text_color, &butn_color, MF_SPLASH_BTN_P, -- cgit v0.9.1