예제 #1
0
        private void OnScroll(double vNew, double vOld, Gump sender)
        {
            int num = (int)vNew;

            Gump[] gumpArray = base.m_Children.ToArray();
            for (int i = 0; i < gumpArray.Length; i++)
            {
                GServerEntry entry = gumpArray[i] as GServerEntry;
                if (entry != null)
                {
                    entry.Y = entry.yBase - num;
                }
            }
        }
예제 #2
0
 protected internal override void Draw(int x, int y)
 {
     base.Draw(x, y);
     if ((this.m_xLast != x) || (this.m_yLast != y))
     {
         Clipper clipper   = new Clipper(x + base.OffsetX, y + base.OffsetY, base.UseWidth, base.UseHeight);
         Gump[]  gumpArray = base.m_Children.ToArray();
         for (int i = 0; i < gumpArray.Length; i++)
         {
             GServerEntry entry = gumpArray[i] as GServerEntry;
             if (entry != null)
             {
                 entry.Clipper = clipper;
             }
         }
     }
 }