示例#1
0
        public static void MoveTo(Gump who)
        {
            Point screen = who.PointToScreen(new Point(who.Width / 2, who.Height / 2));

            System.Windows.Forms.Cursor.Position = Engine.m_Display.PointToScreen((System.Drawing.Point)screen);
            Gumps.Invalidate();
        }
示例#2
0
 public void RemoveAt(int index)
 {
     this.m_Array = null;
     this.m_List.RemoveAt(index);
     Gumps.Invalidate();
     this.m_Count--;
 }
示例#3
0
        public static void MoveTo(Gump who)
        {
            Point point = who.PointToScreen(new Point(who.Width / 2, who.Height / 2));

            Cursor.Position = Engine.m_Display.PointToScreen((Point)point);
            Gumps.Invalidate();
        }
示例#4
0
 public void RemoveAt(int index)
 {
     this.m_Array = (Gump[])null;
     this.m_List.RemoveAt(index);
     Gumps.Invalidate();
     --this.m_Count;
 }
示例#5
0
 public void Remove(Gump ToRemove)
 {
     this.m_Array = null;
     this.m_List.Remove(ToRemove);
     Gumps.Invalidate();
     this.m_Count = this.m_List.Count;
 }
示例#6
0
 public void Remove(Gump ToRemove)
 {
     this.m_Array = (Gump[])null;
     this.m_List.Remove((object)ToRemove);
     Gumps.Invalidate();
     this.m_Count = this.m_List.Count;
 }
示例#7
0
 public int Add(Gump ToAdd)
 {
     this.m_Array = null;
     Gumps.Invalidate();
     ToAdd.Parent = this.m_Owner;
     this.m_Count++;
     return(this.m_List.Add(ToAdd));
 }
示例#8
0
 public int Add(Gump ToAdd)
 {
     this.m_Array = (Gump[])null;
     Gumps.Invalidate();
     ToAdd.Parent = this.m_Owner;
     ++this.m_Count;
     return(this.m_List.Add((object)ToAdd));
 }
示例#9
0
 public void Set(GumpList g)
 {
     this.m_List = new ArrayList((ICollection)g.m_List);
     foreach (Gump gump in this.ToArray())
     {
         gump.Parent = this.m_Owner;
     }
     this.m_Array = (Gump[])null;
     this.m_Count = this.m_List.Count;
     Gumps.Invalidate();
 }
示例#10
0
 public void Add(GumpList list)
 {
     Gump[] gumpArray = list.ToArray();
     for (int i = 0; i < gumpArray.Length; i++)
     {
         gumpArray[i].Parent = this.m_Owner;
         this.m_List.Add(gumpArray[i]);
     }
     this.m_Array = null;
     this.m_Count = this.m_List.Count;
     Gumps.Invalidate();
 }
示例#11
0
 public void Set(GumpList g)
 {
     this.m_List = new ArrayList(g.m_List);
     Gump[] gumpArray = this.ToArray();
     for (int i = 0; i < gumpArray.Length; i++)
     {
         gumpArray[i].Parent = this.m_Owner;
     }
     this.m_Array = null;
     this.m_Count = this.m_List.Count;
     Gumps.Invalidate();
 }
示例#12
0
 public void Add(GumpList list)
 {
     Gump[] array = list.ToArray();
     for (int index = 0; index < array.Length; ++index)
     {
         array[index].Parent = this.m_Owner;
         this.m_List.Add((object)array[index]);
     }
     this.m_Array = (Gump[])null;
     this.m_Count = this.m_List.Count;
     Gumps.Invalidate();
 }
示例#13
0
 public void Insert(int Index, Gump ToAdd)
 {
     this.m_Array = null;
     Gumps.Invalidate();
     ToAdd.Parent = this.m_Owner;
     if ((Index >= 0) && (Index < this.m_List.Count))
     {
         this.m_List.Insert(Index, ToAdd);
     }
     else
     {
         this.m_List.Add(ToAdd);
     }
     this.m_Count++;
 }
示例#14
0
 public void Insert(int Index, Gump ToAdd)
 {
     this.m_Array = (Gump[])null;
     Gumps.Invalidate();
     ToAdd.Parent = this.m_Owner;
     if (Index >= 0 && Index < this.m_List.Count)
     {
         this.m_List.Insert(Index, (object)ToAdd);
     }
     else
     {
         this.m_List.Add((object)ToAdd);
     }
     ++this.m_Count;
 }