added support for fourth digit for inventory (dynamite) count on game panel
authorHolger Schemel <info@artsoft.org>
Sun, 6 Feb 2022 19:00:52 +0000 (20:00 +0100)
committerHolger Schemel <info@artsoft.org>
Sun, 6 Feb 2022 19:00:52 +0000 (20:00 +0100)
src/conf_gfx.c
src/game.c

index 62326d7a972d5924b5db09f9ceed03bd6ba3c52b..c321bcf0eb00e4a5bba9510790a0fdf645bfdb76 100644 (file)
@@ -8549,8 +8549,9 @@ struct ConfigInfo image_config[] =
   { "game.panel.inventory_count.y",            "89"                    },
   { "game.panel.inventory_count.align",                "center"                },
   { "game.panel.inventory_count.valign",       "top"                   },
-  { "game.panel.inventory_count.digits",       "3"                     },
+  { "game.panel.inventory_count.digits",       "-1"                    },
   { "game.panel.inventory_count.font",         "font.text_2"           },
+  { "game.panel.inventory_count.font_narrow",  "font.text_1"           },
   { "game.panel.inventory_count.draw_masked",  "true"                  },
   { "game.panel.inventory_count.draw_order",   "0"                     },
   { "game.panel.inventory_count.class",                "none"                  },
index defb1d08802b16814dc27065efd95ddd776bf296..8422878aeff98cd52891afaa1411fa5300fabf9f 100644 (file)
@@ -2681,6 +2681,7 @@ static void DisplayGameControlValues(void)
     if (type == TYPE_INTEGER)
     {
       if (nr == GAME_PANEL_LEVEL_NUMBER ||
+         nr == GAME_PANEL_INVENTORY_COUNT ||
          nr == GAME_PANEL_TIME)
       {
        boolean use_dynamic_size = (size == -1 ? TRUE : FALSE);