示例#1
0
 public void clear(int i) {
   switch (i) {
     case 0:
       button0.setChecked(false);
       break;
     case 1:
       button1.setChecked(false);
       break;
     case 2:
       button2.setChecked(false);
       break;
     case 3:
       button3.setChecked(false);
       break;
     case 4:
       YoYo.with(Techniques.Shake).duration(700).playOn(ly);
       button0.setChecked(false);
       button1.setChecked(false);
       button2.setChecked(false);
       button3.setChecked(false);
       break;
     default:
       break;
   }
 }
示例#2
0
 public void set(int i) {
   switch (i) {
     case 0:
       button0.setChecked(true);
       YoYo.with(Techniques.Bounce).delay(0).duration(1000).playOn(button0);
       break;
     case 1:
       button1.setChecked(true);
       YoYo.with(Techniques.Bounce).delay(0).duration(1000).playOn(button1);
       break;
     case 2:
       button2.setChecked(true);
       YoYo.with(Techniques.Bounce).delay(0).duration(1000).playOn(button2);
       break;
     case 3:
       button3.setChecked(true);
       YoYo.with(Techniques.Bounce).delay(0).duration(1000).playOn(button3);
       break;
     default:
       break;
   }
 }
示例#3
0
 public void init() {
   button0.setChecked(false);
   button1.setChecked(false);
   button2.setChecked(false);
   button3.setChecked(false);
 }