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