added explicit type for headline entries on setup menu screens
authorHolger Schemel <info@artsoft.org>
Sun, 7 Jun 2020 23:03:01 +0000 (01:03 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 7 Jun 2020 23:03:01 +0000 (01:03 +0200)
src/libgame/setup.h
src/screens.c

index a60585993513299d880294c761173fd9bc3fc496..3af76ed5fa13b92479da451b6657cc3e0c98738c 100644 (file)
 #define TYPE_EMPTY                     (1 << 20)
 #define TYPE_SKIPPABLE                 (1 << 21)
 #define TYPE_KEYTEXT                   (1 << 22)
+#define TYPE_HEADLINE                  (1 << 23)
 
-#define TYPE_GHOSTED                   (1 << 23)
-#define TYPE_QUERY                     (1 << 24)
+#define TYPE_GHOSTED                   (1 << 24)
+#define TYPE_QUERY                     (1 << 25)
 
 // additional values for internal purposes
-#define TYPE_BITFIELD                  (1 << 25)
-#define TYPE_CONTENT                   (1 << 26)
-#define TYPE_ELEMENT_LIST              (1 << 27)
-#define TYPE_CONTENT_LIST              (1 << 28)
+#define TYPE_BITFIELD                  (1 << 26)
+#define TYPE_CONTENT                   (1 << 27)
+#define TYPE_ELEMENT_LIST              (1 << 28)
+#define TYPE_CONTENT_LIST              (1 << 29)
 
 // derived values for setup file handling
 #define TYPE_BOOLEAN_STYLE             (TYPE_BOOLEAN | \
@@ -74,6 +75,7 @@
                                         TYPE_SKIPPABLE         | \
                                         TYPE_KEY               | \
                                         TYPE_STRING            | \
+                                        TYPE_HEADLINE          | \
                                         TYPE_GHOSTED)
 
 #define TYPE_ENTER                     (TYPE_ENTER_SCREEN      | \
index a6d6612b523457e8eee61b42d0ff6fc8ac78f6cd..c492d48b8863118a4947b577bb5aa2e75d990c87 100644 (file)
@@ -6279,11 +6279,11 @@ static struct TokenInfo setup_info_game[] =
 
 static struct TokenInfo setup_info_engines[] =
 {
-  { TYPE_EMPTY,        NULL,                           "Emerald Mine"          },
+  { TYPE_HEADLINE,     NULL,                   "Emerald Mine"          },
   { TYPE_SWITCH,       &setup.forced_scroll_delay, "Scroll Delay:"     },
   { TYPE_ECS_AGA,      &setup.prefer_aga_graphics,"EMC graphics preference:" },
   { TYPE_EMPTY,                NULL,                   ""                      },
-  { TYPE_EMPTY,        NULL,                           "Supaplex"              },
+  { TYPE_HEADLINE,     NULL,                   "Supaplex"              },
   { TYPE_SWITCH, &setup.sp_show_border_elements,"Supaplex Border Elements:" },
   { TYPE_EMPTY,                NULL,                   ""                      },
   { TYPE_LEAVE_MENU,   execSetupMain,          "Back"                  },