Level Select With Star Grading

Here is an example of what I want to happen:

I already have global variable for testing. 1 = one star and so on.

I cant think of a shorter/efficient way to implement this.

Thank you in advance.

This tutorial might be helpful for you