View Single Post
  #11   Spotlight this post!  
Unread 07-02-2013, 15:50
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: How to create an On/Off button?

This is code that I wrote and use. Just make all of your buttons AdvancedButton and call

button#.togglePressed(yourCommand);

some variables are protected so that they cant be accessed but u can still extend the class and make your own addition

code
Reply With Quote