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; } } }
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; } } } }