Ejemplo n.º 1
0
 private void UpdateCurrentTarget()
 {
     currentTarget = targets[currentTargetNum];
     position.X    = currentTarget.position.X - layout;
     position.Y    = currentTarget.position.Y - layout;
     if (customSize)
     {
         size.X = currentTarget.bounds.Width + layout * 2;
         size.Y = currentTarget.bounds.Height + layout * 2;
     }
 }
Ejemplo n.º 2
0
        public void SubPrice(WindowItem windowItem)
        {
            int priceID = -1;

            for (int counter = 0; counter < window.itemsList.Count; counter++)
            {
                if (window.itemsList[counter].Equals(windowItem))
                {
                    priceID = counter;
                    break;
                }
            }
            SubPrice(priceTexts[priceID]);
        }
Ejemplo n.º 3
0
        public void RemoveWindowItem(WindowItem windowItem, bool sort = true, bool hidden = false)
        {
            if (hidden)
            {
                window.hiddenItemsList.Remove(windowItem);
            }
            else
            {
                window.itemsList.Remove(windowItem);
            }
            windowItem = null;

            if (sort)
            {
                SortItems();
                selector.Clamp();
            }
        }
Ejemplo n.º 4
0
 public void AddHiddenItem(WindowItem item)
 {
     hiddenItemsList.Add(item);
     item.source = this;
 }
Ejemplo n.º 5
0
 public void AddItem(WindowItem item)
 {
     itemsList.Add(item);
     item.source = this;
 }