added definitions for menu list entry size (not used yet)
[rocksndiamonds.git] / build-scripts / create_element_defs.pl
index 84d9bc6c6ad14289d5d5476eb1a66b048e2f5a76..59d1a4d8076c81e11050ce18763a07a8eeddfb43 100755 (executable)
@@ -500,6 +500,11 @@ sub print_sounds_list
            $sound =~ s/^/CLASS_/;      # add class identifier
        }
 
+       # dirty hack for making "ABC[DEF]" work as a "special" suffix
+       $sound =~ s/([^_])\[/$1_/;
+       $sound =~ s/\[//;
+       $sound =~ s/\]//;
+
        $sound = "SND_$sound";
 
        my $define_text = "#define $sound";
@@ -558,6 +563,11 @@ sub print_music_list
 
        my $music = $_;
 
+       # dirty hack for making "ABC[DEF]" work as a "special" suffix
+       $music =~ s/([^_])\[/$1_/;
+       $music =~ s/\[//;
+       $music =~ s/\]//;
+
        $music = "MUS_$music";
 
        my $define_text = "#define $music";
@@ -2567,7 +2577,7 @@ sub print_image_config_vars
                $var = $1 . "[GFX_SPECIAL_ARG_DEFAULT]" . $3;
            }
 
-           if ($var =~ /^menu.(draw_[xy]offset|list_size)$/)
+           if ($var =~ /^menu.(draw_[xy]offset|list_size|list_entry_size)$/)
            {
                $var .= "[GFX_SPECIAL_ARG_DEFAULT]";
            }