diff options
Diffstat (limited to 'lightup.c')
| -rw-r--r-- | lightup.c | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -1867,6 +1867,28 @@ static game_ui *new_ui(const game_state *state) return ui; } +static config_item *get_prefs(game_ui *ui) +{ + config_item *ret; + + ret = snewn(2, config_item); + + ret[0].name = "Draw non-light marks even when lit"; + ret[0].kw = "show-lit-blobs"; + ret[0].type = C_BOOLEAN; + ret[0].u.boolean.bval = ui->draw_blobs_when_lit; + + ret[1].name = NULL; + ret[1].type = C_END; + + return ret; +} + +static void set_prefs(game_ui *ui, const config_item *cfg) +{ + ui->draw_blobs_when_lit = cfg[0].u.boolean.bval; +} + static void free_ui(game_ui *ui) { sfree(ui); @@ -2353,6 +2375,7 @@ const struct game thegame = { free_game, true, solve_game, true, game_can_format_as_text_now, game_text_format, + get_prefs, set_prefs, new_ui, free_ui, NULL, /* encode_ui */ |