diff options
Diffstat (limited to 'signpost.c')
| -rw-r--r-- | signpost.c | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -1437,6 +1437,30 @@ static void free_ui(game_ui *ui) sfree(ui); } +static config_item *get_prefs(game_ui *ui) +{ + config_item *ret; + + ret = snewn(2, config_item); + + ret[0].name = "Victory rotation effect"; + ret[0].kw = "flash-type"; + ret[0].type = C_CHOICES; + ret[0].u.choices.choicenames = ":Unidirectional:Meshing gears"; + ret[0].u.choices.choicekws = ":unidirectional:gears"; + ret[0].u.choices.selected = ui->gear_mode; + + ret[1].name = NULL; + ret[1].type = C_END; + + return ret; +} + +static void set_prefs(game_ui *ui, const config_item *cfg) +{ + ui->gear_mode = cfg[0].u.choices.selected; +} + static void game_changed_state(game_ui *ui, const game_state *oldstate, const game_state *newstate) { @@ -2292,6 +2316,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 */ |