Using an Enum for GUI.Toggle?

Hi!

Say this is my enum info:

public enum Difficulty
{
	Easy,
	Normal,
	Hard
}
public Difficulty currentDifficulty;

How do I go about making 3 GUI.toggles out of this enum (where only one can be “currentDifficulty”/active)?

Something like this:
13396-difficulty.png

You use a SelectionGrid. Have the names taken from the Enum by Difficulty.GetNames(). Because Enums are convertable to ints and vice versa, the folllowing should work:

currentDifficulty = (Difficulty)GUILayout.SelectionGrid((int)currentDifficulty, Difficulty.GetNames(typeof(Difficulty)), 3, toggleStyle);

EDIT: the correct line of code.