text: import _ from 'lodash';
  
  const buttonCharacter = {
    name: "button",
    size: {width: 129, height: 129},
    animationTypes: ['IDLE', 'PRESSED', 'LIT', 'BLINK', 'ALL'],
    frames:[
      require ("./button_neutral.png"),
      require ("./button_lit.png"),
      require ("./button_pressed.png"),
    ],
    animationIndex: function getAnimationIndex (animationType) {
      switch (animationType) {
        case 'IDLE':
          return [0];
        case 'LIT':
          return [1];
        case 'PRESSED':
          return [2];
        case 'ALL':
          return [0,1,2];
        case 'BLINK': 
          return [0, 1, 1, 0];
        default:
          if (_.includes(animationType, 'BLINK_')) {
            const parts = _.split(animationType, '_');
            const seqNum = Number(_.last(parts));
            const seq = _.concat(_.fill(Array(4 * seqNum), 0), [0, 1, 1, 0]);
            return seq;
          }
          return [0];
      }
    },
  };
  
  export default buttonCharacter;
  