How to make an Object with pre defined Animations in Extension?

Hello,

I’m currently making an Extension and I was interested how to make an Object with pre defined Animations where you can select the Sprite for that Animation, but you cannot add new Animations to it.

For example I’m using an Extension that adds a Button to GDevelop with pre defined Animation Names.

You click on “add animation” until it reaches X animations, then the user will only be able to change those X animations.