@rpg-engine/long-bow 0.5.87 → 0.5.89
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 +4 -3
- 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 +4 -3
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CheckItem.tsx +6 -1
- package/src/components/Item/Inventory/ItemContainer.tsx +6 -1
- package/src/components/Item/Inventory/ItemSlot.tsx +4 -1
|
@@ -13267,7 +13267,8 @@ var CheckItem = function CheckItem(_ref) {
|
|
|
13267
13267
|
}, React__default.createElement("input", {
|
|
13268
13268
|
className: "rpgui-checkbox",
|
|
13269
13269
|
type: "checkbox",
|
|
13270
|
-
checked: checked
|
|
13270
|
+
checked: checked,
|
|
13271
|
+
readOnly: true
|
|
13271
13272
|
}), React__default.createElement("label", null, label), React__default.createElement("br", null));
|
|
13272
13273
|
};
|
|
13273
13274
|
|
|
@@ -14277,7 +14278,7 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
|
|
|
14277
14278
|
onPointerDown: onDragStart !== undefined && onDragEnd !== undefined ? undefined : function () {
|
|
14278
14279
|
if (item) onPointerDown(item.type, containerType != null ? containerType : null, item);
|
|
14279
14280
|
},
|
|
14280
|
-
isSelectingShortcut: isSelectingShortcut && ((item == null ? void 0 : item.type) === shared.ItemType.Consumable || (item == null ? void 0 : item.type) === shared.ItemType.Tool)
|
|
14281
|
+
isSelectingShortcut: isSelectingShortcut && ((item == null ? void 0 : item.type) === shared.ItemType.Consumable || (item == null ? void 0 : item.type) === shared.ItemType.Tool || (item == null ? void 0 : item.subType) === shared.ItemSubType.Seed)
|
|
14281
14282
|
}, React__default.createElement(Draggable, {
|
|
14282
14283
|
axis: isSelectingShortcut ? 'none' : 'both',
|
|
14283
14284
|
defaultClassName: item ? 'draggable' : 'empty-slot',
|
|
@@ -16572,7 +16573,7 @@ var ItemContainer$1 = function ItemContainer(_ref) {
|
|
|
16572
16573
|
startScrolling = _useScrollOnDrag.startScrolling,
|
|
16573
16574
|
stopScrolling = _useScrollOnDrag.stopScrolling;
|
|
16574
16575
|
var handleSetShortcut = function handleSetShortcut(item, index) {
|
|
16575
|
-
if (item.type === shared.ItemType.Consumable || item.type === shared.ItemType.Tool) {
|
|
16576
|
+
if (item.type === shared.ItemType.Consumable || item.type === shared.ItemType.Tool || item.subType === shared.ItemSubType.Seed) {
|
|
16576
16577
|
setItemShortcut == null ? void 0 : setItemShortcut(item.key, index);
|
|
16577
16578
|
}
|
|
16578
16579
|
};
|