예제 #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;
     }
 }
예제 #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]);
        }
예제 #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();
            }
        }
예제 #4
0
 public void AddHiddenItem(WindowItem item)
 {
     hiddenItemsList.Add(item);
     item.source = this;
 }
예제 #5
0
 public void AddItem(WindowItem item)
 {
     itemsList.Add(item);
     item.source = this;
 }