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