예제 #1
0
        /// <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);
        }
예제 #2
0
 /// <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)
 {
 }
예제 #3
0
 /// <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;
 }
예제 #4
0
 /// <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)
 {
 }