create button to change onion skin style

hi i was wondering if someone could make (by script) a button to toggle between the tree onion skin styles. (leave attach capture)
i dont have much idea in script, and i didnt found anything on internet to help me to create those buttons.
if someone can create this, or tell me how to create the script, i appreciate it alot (also i think this button could be useful for a lot of people too)