/// <summary> /// Creates a <see cref="QuickBarItemPB"/>. /// </summary> /// <param name="slot">The slot of the <see cref="QuickBarItemPB"/>.</param> /// <returns>The <see cref="QuickBarItemPB"/>.</returns> QuickBarItemPB CreateQuickBarSlot(int slot) { var c = new QuickBarItemPB(this, Vector2.Zero, (byte)slot); c.Position = new Vector2((c.Size.X + _slotPadding) * (slot - 1), _slotPadding); return(c); }
/// <summary> /// Initializes a new instance of the <see cref="QuickBarSlotValues"/> struct. /// </summary> /// <param name="itemPB">The <see cref="QuickBarItemPB"/> to get the values from..</param> public QuickBarSlotValues(QuickBarItemPB itemPB) : this(itemPB.Slot, itemPB.QuickBarItemType, itemPB.QuickBarItemValue) { }
/// <summary> /// Creates a <see cref="QuickBarItemPB"/>. /// </summary> /// <param name="slot">The slot of the <see cref="QuickBarItemPB"/>.</param> /// <returns>The <see cref="QuickBarItemPB"/>.</returns> QuickBarItemPB CreateQuickBarSlot(int slot) { var c = new QuickBarItemPB(this, Vector2.Zero, (byte)slot); c.Position = new Vector2((c.Size.X + _slotPadding) * (slot - 1), _slotPadding); return c; }