Hi, I am using sprite candy, but this is more of a general concept question.
I am trying to create a folding tree menu system, but for some bizarre reason its just not clicking in my mind how to do one. I have had a couple of attempts so dar, but they both ended in a lot of confusing spagetti code. Example of what I want:

anyone got any suggestions or code examples on programming a tree menu?
I am trying to create a folding tree menu system, but for some bizarre reason its just not clicking in my mind how to do one. I have had a couple of attempts so dar, but they both ended in a lot of confusing spagetti code. Example of what I want:

anyone got any suggestions or code examples on programming a tree menu?