- { &setup.scroll_delay, "Scroll Delay:" },
- { &setup.soft_scrolling, "Soft Scroll.:" },
- { &setup.fading, "Fading:" },
- { &setup.quick_doors, "Quick Doors:" },
- { &setup.autorecord, "Auto-Record:" },
- { &setup.team_mode, "Team-Mode:" },
- { &setup.handicap, "Handicap:" },
- { &setup.time_limit, "Timelimit:" },
- { NULL, "Input Devices" },
- { NULL, "" },
- { NULL, "Exit" },
- { NULL, "Save and exit" }
- };
+ { TYPE_SWITCH, &setup.toons, "Toons:" },
+#if 0
+ { TYPE_SWITCH, &setup.double_buffering,"Buffered gfx:" },
+#endif
+ { TYPE_SWITCH, &setup.scroll_delay, "Scroll Delay:" },
+ { TYPE_SWITCH, &setup.soft_scrolling, "Soft Scroll.:" },
+#if 0
+ { TYPE_SWITCH, &setup.fading, "Fading:" },
+#endif
+ { TYPE_SWITCH, &setup.fullscreen, "Fullscreen:" },
+ { TYPE_SWITCH, &setup.quick_doors, "Quick Doors:" },
+ { TYPE_SWITCH, &setup.autorecord, "Auto-Record:" },
+ { TYPE_SWITCH, &setup.team_mode, "Team-Mode:" },
+ { TYPE_SWITCH, &setup.handicap, "Handicap:" },
+ { TYPE_SWITCH, &setup.time_limit, "Timelimit:" },
+ { TYPE_EMPTY, NULL, "" },
+ { TYPE_LEAVE_MENU, execExitSetup, "Exit" },
+ { TYPE_LEAVE_MENU, execSaveAndExitSetup, "Save and exit" },
+ { 0, NULL, NULL }
+};
+
+static struct TokenInfo setup_info_sound[] =
+{
+ { TYPE_SWITCH, &setup.sound, "Sound:", },
+ { TYPE_EMPTY, NULL, "" },
+ { TYPE_SWITCH, &setup.sound_simple, "Simple Sound:" },
+ { TYPE_SWITCH, &setup.sound_loops, "Sound Loops:" },
+ { TYPE_SWITCH, &setup.sound_music, "Game Music:" },
+ { TYPE_EMPTY, NULL, "" },
+ { TYPE_LEAVE_MENU, execSetupMain, "Exit" },
+ { 0, NULL, NULL }
+};
+
+static void drawSetupValue(int pos)
+{
+ int xpos = MENU_SCREEN_VALUE_XPOS;
+ int ypos = MENU_SCREEN_START_YPOS + pos;
+ int value_color = FC_YELLOW;
+ char *value_string = getSetupValue(setup_info[pos].type & ~TYPE_GHOSTED,
+ setup_info[pos].value);
+
+ if (setup_info[pos].type & TYPE_SWITCH ||
+ setup_info[pos].type & TYPE_YES_NO)
+ {
+ boolean value = *(boolean *)(setup_info[pos].value);
+ int value_length = 3;
+
+ if (!value)
+ value_color = FC_BLUE;
+
+ if (strlen(value_string) < value_length)
+ strcat(value_string, " ");
+ }
+
+ DrawText(SX + xpos * 32, SY + ypos * 32, value_string, FS_BIG, value_color);
+}
+
+static void DrawGenericSetupScreen()
+{
+ char *title_string = NULL;
+ int i;