public void Remove(ClassedGuiInput <T> Item) { _Items.Remove(Item); if (Item == Value) { Value = null; } }
protected void HandleClick(ClassedGuiInput <T> Item) { if (Value != null) { Value.Mode = Class.Mode.None; } Value = Item; }
public void Move(int Index, ClassedGuiInput <T> Item) { _Items.Remove(Item); _Items.Insert(Index, Item); }
public void Insert(int Index, ClassedGuiInput <T> Item) { _Items.Insert(Index, Item); Item.OnClick += (sender, e) => HandleClick((ClassedGuiInput <T>)sender); Item.Parent = this; }
public virtual void Add(ClassedGuiInput <T> Item) { _Items.Add(Item); Item.OnClick += (sender, e) => HandleClick((ClassedGuiInput <T>)sender); Item.Parent = this; }
private Vector2f ItemTranslation(ClassedGuiInput <T> Item) { return(new Vector2f(0, Item.Size.Y)); }