@rpg-engine/long-bow 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,6 @@ export interface IEquipmentSetProps {
10
10
  x: number;
11
11
  y: number;
12
12
  };
13
- ContainerTypes: ItemContainerType | null;
13
+ type: ItemContainerType | null;
14
14
  }
15
15
  export declare const EquipmentSet: React.FC<IEquipmentSetProps>;
@@ -6,6 +6,6 @@ export interface IItemContainerProps {
6
6
  onItemClick?: (item: IItem, ItemType: IItem['type'], itemContainerType: ItemContainerType | null) => void;
7
7
  onMouseOver?: (e: any, slotIndex: number, item: IItem | null) => void;
8
8
  onSelected?: (optionId: string, item: IItem) => void;
9
- ContainerType: ItemContainerType;
9
+ type: ItemContainerType;
10
10
  }
11
11
  export declare const ItemContainer: React.FC<IItemContainerProps>;
@@ -5845,7 +5845,14 @@ var generateContextMenu = function generateContextMenu(itemType, itemContainerTy
5845
5845
  }
5846
5846
 
5847
5847
  if (itemContainerType === shared.ItemContainerType.Equipment) {
5848
- contextActionMenu = generateContextMenuListOptions(shared.ActionsForEquipmentSet.Equipment);
5848
+ switch (itemType) {
5849
+ case shared.ItemType.Container:
5850
+ contextActionMenu = generateContextMenuListOptions(shared.ActionsForEquipmentSet.Container);
5851
+ break;
5852
+
5853
+ default:
5854
+ contextActionMenu = generateContextMenuListOptions(shared.ActionsForEquipmentSet.Equipment);
5855
+ }
5849
5856
  }
5850
5857
 
5851
5858
  if (itemContainerType === shared.ItemContainerType.Loot) {
@@ -6164,7 +6171,7 @@ var ItemContainer = function ItemContainer(_ref) {
6164
6171
  _onMouseOver = _ref.onMouseOver,
6165
6172
  _onSelected = _ref.onSelected,
6166
6173
  onItemClick = _ref.onItemClick,
6167
- ContainerType = _ref.ContainerType;
6174
+ type = _ref.type;
6168
6175
 
6169
6176
  var onRenderSlots = function onRenderSlots() {
6170
6177
  var slots = [];
@@ -6176,7 +6183,7 @@ var ItemContainer = function ItemContainer(_ref) {
6176
6183
  key: i,
6177
6184
  slotIndex: i,
6178
6185
  item: ((_itemContainer$slots = itemContainer.slots) == null ? void 0 : _itemContainer$slots[i]) || null,
6179
- itemContainerType: ContainerType,
6186
+ itemContainerType: type,
6180
6187
  onMouseOver: function onMouseOver(event, slotIndex, item) {
6181
6188
  if (_onMouseOver) _onMouseOver(event, slotIndex, item);
6182
6189
  },