Beispiel #1
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());
     }
 }