Adjustments to OnChangeAttribute; Added grouping sprites in TextGen