Output based on generators

Separate the process of button generation from sprite generation.
Now we have generators for defineButton2 and doAction tags.