added selecting element for group elements according to current level
authorHolger Schemel <info@artsoft.org>
Sun, 8 Oct 2023 11:35:15 +0000 (13:35 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 8 Oct 2023 11:35:15 +0000 (13:35 +0200)
This change works similar to the previous commit, but not selecting an
animation frame according to the current level, but selecting a game
element from a number of elements in a group element (selecting the
first element for the first level, the second element for the second
level, and so on, again overwrapping if there are more levels than
game elements defined for the group element). That way, different game
elements can be used in different levels which all use the same group
elements.

src/editor.c

index 21fd262db007361c6fccb6bbaf5a90166b7aafd7..177336f7f5cfa0e90ba9967c81d9bb8b8ea07db1 100644 (file)
@@ -2465,6 +2465,7 @@ static struct ValueTextInfo options_group_choice_mode[] =
   { ANIM_LINEAR,               "linear"                        },
   { ANIM_PINGPONG,             "pingpong"                      },
   { ANIM_PINGPONG2,            "pingpong 2"                    },
+  { ANIM_LEVEL_NR,             "level number"                  },
 
   { -1,                                NULL                            }
 };