How to add custom modes to the "class NeoPatterns : public Adafruit_NeoPixel" class[solved]

Ok, I finally got it, it was easier than expected, I just added a custom function with an update function, and had to change some variables.
Changed lines:

enum  pattern { NONE, RAINBOW_CYCLE, THEATER_CHASE, COLOR_WIPE, SCANNER, FADE, STATIC };
case STATIC:  // Custom animation for candle
                    StaticUpdate();
void Static(uint16_t steps, uint8_t interval, direction dir = FORWARD)
    {
      ActivePattern = OFF;
      Interval = interval;
      TotalSteps = numPixels();
      Index = 0;
      Direction = dir;
    }
    
    // Initialize for a OFF
    void StaticUpdate()
    {

      for (int i = 0; i < numPixels(); i++)
        {
          ColorSet(Color(red, green, blue));
        }
        show();
        Increment();
    }
else if (mode == "1"){
        Strip1.ActivePattern = STATIC;
        Strip1.TotalSteps = Strip1.numPixels();
        }