@rpg-engine/long-bow 0.1.93 → 0.1.94
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.
- package/dist/long-bow.cjs.development.js +17 -5
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +17 -5
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Item/Inventory/ItemSlot.tsx +2 -5
- package/src/components/Item/Inventory/itemContainerHelper.ts +3 -3
|
@@ -5827,7 +5827,8 @@ var generateContextList = function generateContextList(actionsByTypeList) {
|
|
|
5827
5827
|
});
|
|
5828
5828
|
return contextMenu;
|
|
5829
5829
|
};
|
|
5830
|
-
|
|
5830
|
+
|
|
5831
|
+
var handleContextMenuList = function handleContextMenuList(itemType) {
|
|
5831
5832
|
var contextActionMenu = [];
|
|
5832
5833
|
|
|
5833
5834
|
switch (itemType) {
|
|
@@ -5836,15 +5837,26 @@ var handleEquipmentContextMenuList = function handleEquipmentContextMenuList(ite
|
|
|
5836
5837
|
case shared.ItemType.Accessory:
|
|
5837
5838
|
case shared.ItemType.Jewelry:
|
|
5838
5839
|
case shared.ItemType.Tool:
|
|
5839
|
-
contextActionMenu = generateContextList(shared.ActionsByItemType.
|
|
5840
|
+
contextActionMenu = generateContextList(shared.ActionsByItemType.Equipment);
|
|
5841
|
+
break;
|
|
5842
|
+
|
|
5843
|
+
case shared.ItemType.Consumable:
|
|
5844
|
+
contextActionMenu = generateContextList(shared.ActionsByItemType.Consumable);
|
|
5845
|
+
break;
|
|
5846
|
+
|
|
5847
|
+
case shared.ItemType.CraftMaterial:
|
|
5848
|
+
contextActionMenu = generateContextList(shared.ActionsByItemType.CraftMaterial);
|
|
5840
5849
|
break;
|
|
5841
5850
|
|
|
5851
|
+
case shared.ItemType.Other:
|
|
5852
|
+
case shared.ItemType.Information:
|
|
5853
|
+
case shared.ItemType.Quest:
|
|
5842
5854
|
case shared.ItemType.Container:
|
|
5843
|
-
contextActionMenu = generateContextList(shared.ActionsByItemType.
|
|
5855
|
+
contextActionMenu = generateContextList(shared.ActionsByItemType.Other);
|
|
5844
5856
|
break;
|
|
5845
5857
|
|
|
5846
5858
|
default:
|
|
5847
|
-
contextActionMenu = generateContextList(shared.ActionsByItemType.
|
|
5859
|
+
contextActionMenu = generateContextList(shared.ActionsByItemType.Other);
|
|
5848
5860
|
break;
|
|
5849
5861
|
}
|
|
5850
5862
|
|
|
@@ -5887,7 +5899,7 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
|
|
|
5887
5899
|
|
|
5888
5900
|
React.useEffect(function () {
|
|
5889
5901
|
if (item) {
|
|
5890
|
-
setContextActions(
|
|
5902
|
+
setContextActions(handleContextMenuList(item.type));
|
|
5891
5903
|
}
|
|
5892
5904
|
}, [item]);
|
|
5893
5905
|
|