Пример #1
0
 public void AddGUI(GUIComponent GUI, GUIComponent parent)
 {
     if (parent == null)
         this.GUIComponents.Push(GUI);
     else
     {
         GUI.Position = Helper.AddRectPos(GUI.Position, parent.Position);
         this.GUIComponents.Push(GUI);
     }
 }
Пример #2
0
 /// <summary>
 /// Base method for adding GUI element
 /// </summary>
 /// <param name="GUI">Component, that we want to add.</param>
 public void AddGUI(GUIComponent GUI)
 {
     this.GUIComponents.AddFirst(GUI);
 }
Пример #3
0
 /// <summary>
 /// Base method for removing GUI element
 /// </summary>
 /// <param name="GUI">Component, that we want to remove</param>
 public void RemoveGUI(GUIComponent GUI)
 {
     GUIComponents.Remove(GUI);
 }
Пример #4
0
 public void AddGUI(GUIComponent GUI)
 {
     GUI.Position = Helper.AddRectPos(GUI.Position, this.Position);
     this.GUIComponents.Push(GUI);
 }
Пример #5
0
 public void AddGUI(GUIComponent GUI)
 {
     this.GUIComponents.Push(GUI);
 }