Esempio n. 1
0
 /**
  * Will scale this panel by the given amount in world coordinates
  * @param move the amount that this panel will be moved by
  * @param affectSubPanels If TRUE, all of this panels subPanels position settings will be set to match this Panels position settings.
  */
 public virtual void movePanel(float Xincrement, float Yincrement, bool effectSubPanels)
 {
     Background.setCenterX(Background.getCenterX() + Xincrement);
     Background.setCenterY(Background.getCenterY() + Yincrement);
     if (effectSubPanels && subPanels != null)
     {
         int panelsFound = 0;
         for (int loop = 0; loop < subPanels.Length && panelsFound < numberOfPanels; loop++)
         {
             if (subPanels[loop] != null)
             {
                 panelsFound++;
                 subPanels[loop].movePanel(Xincrement, Yincrement, effectSubPanels);
             }
         }
     }
 }