Exemple #1
0
 /**
  * Will scale this panel by the given amount in world coordinates
  * @param scale the amount that will be scaled by
  * @param affectSubPanels If TRUE, all of this panels subPanels size settings will be set to match this Panels size settings.
  */
 public virtual void scalePanel(float XScale, float YScale, bool effectSubPanels)
 {
     Background.setWidth(Background.getWidth() * XScale);
     Background.setHeight(Background.getHeight() * YScale);
     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(XScale, YScale, effectSubPanels);
             }
         }
     }
 }