Exemple #1
0
 /**
  *
  */
 private void updateHighLight()
 {
     if (highLight.visible)
     {
         highLight.setCenter(base.getCenterX(), base.getCenterY());
         highLight.setSize(base.getWidth() * 2, base.getHeight() * 2);
         highLight.setFrame((highLight.getFrame() + 1) % highLight.getSprite().getTotalFrames());
     }
 }
Exemple #2
0
 /**
  * Will automatically update the state of this panel and all contained panels
  * @param mouse
  */
 public override void autoUpdateState(Mouse mouse)
 {
     if (localLight != null && base.getState() != PanelState.INACTIVE)
     {
         if (localLight.getType() == type)
         {
             base.setState(PanelState.SELECTED, true);
         }
         else
         {
             base.setState(PanelState.IDLE, true);
         }
     }
     else
     {
         base.autoUpdateState(mouse);
     }
     if (sparcler.visible)
     {
         sparcler.setFrame((sparcler.getFrame() + 1) % sparcler.getSprite().getTotalFrames());
     }
 }