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); } }
/// <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); }
/// <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); }
public void AddGUI(GUIComponent GUI) { GUI.Position = Helper.AddRectPos(GUI.Position, this.Position); this.GUIComponents.Push(GUI); }
public void AddGUI(GUIComponent GUI) { this.GUIComponents.Push(GUI); }