@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
package/dist/long-bow.esm.js
CHANGED
|
@@ -13261,7 +13261,8 @@ var CheckItem = function CheckItem(_ref) {
|
|
|
13261
13261
|
}, React.createElement("input", {
|
|
13262
13262
|
className: "rpgui-checkbox",
|
|
13263
13263
|
type: "checkbox",
|
|
13264
|
-
checked: checked
|
|
13264
|
+
checked: checked,
|
|
13265
|
+
readOnly: true
|
|
13265
13266
|
}), React.createElement("label", null, label), React.createElement("br", null));
|
|
13266
13267
|
};
|
|
13267
13268
|
|
|
@@ -14271,7 +14272,7 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
|
|
|
14271
14272
|
onPointerDown: onDragStart !== undefined && onDragEnd !== undefined ? undefined : function () {
|
|
14272
14273
|
if (item) onPointerDown(item.type, containerType != null ? containerType : null, item);
|
|
14273
14274
|
},
|
|
14274
|
-
isSelectingShortcut: isSelectingShortcut && ((item == null ? void 0 : item.type) === ItemType.Consumable || (item == null ? void 0 : item.type) === ItemType.Tool)
|
|
14275
|
+
isSelectingShortcut: isSelectingShortcut && ((item == null ? void 0 : item.type) === ItemType.Consumable || (item == null ? void 0 : item.type) === ItemType.Tool || (item == null ? void 0 : item.subType) === ItemSubType.Seed)
|
|
14275
14276
|
}, React.createElement(Draggable, {
|
|
14276
14277
|
axis: isSelectingShortcut ? 'none' : 'both',
|
|
14277
14278
|
defaultClassName: item ? 'draggable' : 'empty-slot',
|
|
@@ -16569,7 +16570,7 @@ var ItemContainer$1 = function ItemContainer(_ref) {
|
|
|
16569
16570
|
startScrolling = _useScrollOnDrag.startScrolling,
|
|
16570
16571
|
stopScrolling = _useScrollOnDrag.stopScrolling;
|
|
16571
16572
|
var handleSetShortcut = function handleSetShortcut(item, index) {
|
|
16572
|
-
if (item.type === ItemType.Consumable || item.type === ItemType.Tool) {
|
|
16573
|
+
if (item.type === ItemType.Consumable || item.type === ItemType.Tool || item.subType === ItemSubType.Seed) {
|
|
16573
16574
|
setItemShortcut == null ? void 0 : setItemShortcut(item.key, index);
|
|
16574
16575
|
}
|
|
16575
16576
|
};
|