I have a graphic that needs to have a "legend" at the top. There could be anywhere from 1 to 5 items in the legend. Each one is a group containing a quad with a solid color and a text object that will vary.
I would like for the legend to automatically center along the top line like this:

Here is how I grouped my objects:

And here is the Visual Logic I used to get each group to center:

Now I can't figure out how to get the individual legend "groups" to center. Like I said, these may vary depending on what the user enters.
Hopefully this makes sense.