@rpg-engine/long-bow 0.3.78 → 0.3.80

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.
@@ -33218,7 +33218,8 @@ var DraggableContainer = function DraggableContainer(_ref) {
33218
33218
  initialPosition = _ref$initialPosition === void 0 ? {
33219
33219
  x: 0,
33220
33220
  y: 0
33221
- } : _ref$initialPosition;
33221
+ } : _ref$initialPosition,
33222
+ scale = _ref.scale;
33222
33223
  var draggableRef = useRef(null);
33223
33224
  useOutsideClick(draggableRef, 'item-container');
33224
33225
  useEffect(function () {
@@ -33244,7 +33245,8 @@ var DraggableContainer = function DraggableContainer(_ref) {
33244
33245
  });
33245
33246
  }
33246
33247
  },
33247
- defaultPosition: initialPosition
33248
+ defaultPosition: initialPosition,
33249
+ scale: scale
33248
33250
  }, React.createElement(Container$6, {
33249
33251
  ref: draggableRef,
33250
33252
  width: width,
@@ -33826,7 +33828,7 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
33826
33828
  }, 100);
33827
33829
  } else if (item) {
33828
33830
  var isTouch = false;
33829
- if (e.type === 'touchend' && !isSelectingShortcut) {
33831
+ if (!isContextMenuDisabled && e.type === 'touchend' && !isSelectingShortcut) {
33830
33832
  isTouch = true;
33831
33833
  setIsTooltipMobileVisible(true);
33832
33834
  }
@@ -34284,7 +34286,8 @@ var CraftBook = function CraftBook(_ref) {
34284
34286
  if (onClose) {
34285
34287
  onClose();
34286
34288
  }
34287
- }
34289
+ },
34290
+ scale: scale
34288
34291
  }, React.createElement("div", {
34289
34292
  style: {
34290
34293
  width: '100%'
@@ -34441,7 +34444,7 @@ var EquipmentSet = function EquipmentSet(_ref) {
34441
34444
  onItemOutsideDrop = _ref.onItemOutsideDrop,
34442
34445
  checkIfItemCanBeMoved = _ref.checkIfItemCanBeMoved,
34443
34446
  checkIfItemShouldDragEnd = _ref.checkIfItemShouldDragEnd,
34444
- dragScale = _ref.dragScale;
34447
+ scale = _ref.scale;
34445
34448
  var neck = equipmentSet.neck,
34446
34449
  leftHand = equipmentSet.leftHand,
34447
34450
  ring = equipmentSet.ring,
@@ -34486,7 +34489,7 @@ var EquipmentSet = function EquipmentSet(_ref) {
34486
34489
  onDragEnd: function onDragEnd(quantity) {
34487
34490
  if (onItemDragEnd) onItemDragEnd(quantity);
34488
34491
  },
34489
- dragScale: dragScale,
34492
+ dragScale: scale,
34490
34493
  checkIfItemCanBeMoved: checkIfItemCanBeMoved,
34491
34494
  checkIfItemShouldDragEnd: checkIfItemShouldDragEnd,
34492
34495
  onPlaceDrop: function onPlaceDrop(item, slotIndex, itemContainerType) {
@@ -34507,7 +34510,8 @@ var EquipmentSet = function EquipmentSet(_ref) {
34507
34510
  if (onClose) onClose();
34508
34511
  },
34509
34512
  width: "330px",
34510
- cancelDrag: ".equipment-container-body"
34513
+ cancelDrag: ".equipment-container-body",
34514
+ scale: scale
34511
34515
  }, React.createElement(EquipmentSetContainer, {
34512
34516
  className: "equipment-container-body"
34513
34517
  }, React.createElement(EquipmentColumn, null, onRenderEquipmentSlotRange(0, 3)), React.createElement(EquipmentColumn, null, onRenderEquipmentSlotRange(3, 7)), React.createElement(EquipmentColumn, null, onRenderEquipmentSlotRange(7, 10))));
@@ -34527,7 +34531,8 @@ var SlotsContainer = function SlotsContainer(_ref) {
34527
34531
  onClose = _ref.onClose,
34528
34532
  _onPositionChange = _ref.onPositionChange,
34529
34533
  onOutsideClick = _ref.onOutsideClick,
34530
- initialPosition = _ref.initialPosition;
34534
+ initialPosition = _ref.initialPosition,
34535
+ scale = _ref.scale;
34531
34536
  return React.createElement(DraggableContainer, {
34532
34537
  title: title,
34533
34538
  type: RPGUIContainerTypes.Framed,
@@ -34549,7 +34554,8 @@ var SlotsContainer = function SlotsContainer(_ref) {
34549
34554
  }
34550
34555
  },
34551
34556
  onOutsideClick: onOutsideClick,
34552
- initialPosition: initialPosition
34557
+ initialPosition: initialPosition,
34558
+ scale: scale
34553
34559
  }, children);
34554
34560
  };
34555
34561
 
@@ -34792,7 +34798,7 @@ var ItemContainer$1 = function ItemContainer(_ref) {
34792
34798
  checkIfItemCanBeMoved = _ref.checkIfItemCanBeMoved,
34793
34799
  initialPosition = _ref.initialPosition,
34794
34800
  checkIfItemShouldDragEnd = _ref.checkIfItemShouldDragEnd,
34795
- dragScale = _ref.dragScale,
34801
+ scale = _ref.scale,
34796
34802
  shortcuts = _ref.shortcuts,
34797
34803
  setItemShortcut = _ref.setItemShortcut,
34798
34804
  removeShortcut = _ref.removeShortcut,
@@ -34837,7 +34843,7 @@ var ItemContainer$1 = function ItemContainer(_ref) {
34837
34843
  onDragEnd: function onDragEnd(quantity) {
34838
34844
  if (onItemDragEnd) onItemDragEnd(quantity);
34839
34845
  },
34840
- dragScale: dragScale,
34846
+ dragScale: scale,
34841
34847
  checkIfItemCanBeMoved: checkIfItemCanBeMoved,
34842
34848
  checkIfItemShouldDragEnd: checkIfItemShouldDragEnd,
34843
34849
  openQuantitySelector: function openQuantitySelector(maxQuantity, callback) {
@@ -34864,7 +34870,8 @@ var ItemContainer$1 = function ItemContainer(_ref) {
34864
34870
  return React.createElement(React.Fragment, null, React.createElement(SlotsContainer, {
34865
34871
  title: itemContainer.name || 'Container',
34866
34872
  onClose: onClose,
34867
- initialPosition: initialPosition
34873
+ initialPosition: initialPosition,
34874
+ scale: scale
34868
34875
  }, type === ItemContainerType.Inventory && shortcuts && removeShortcut && React.createElement(ShortcutsSetter, {
34869
34876
  setSettingShortcutIndex: setSettingShortcutIndex,
34870
34877
  settingShortcutIndex: settingShortcutIndex,
@@ -35413,7 +35420,8 @@ var QuestInfo = function QuestInfo(_ref) {
35413
35420
  var quests = _ref.quests,
35414
35421
  onClose = _ref.onClose,
35415
35422
  buttons = _ref.buttons,
35416
- onChangeQuest = _ref.onChangeQuest;
35423
+ onChangeQuest = _ref.onChangeQuest,
35424
+ scale = _ref.scale;
35417
35425
  var _useState = useState(0),
35418
35426
  currentIndex = _useState[0],
35419
35427
  setCurrentIndex = _useState[1];
@@ -35439,7 +35447,8 @@ var QuestInfo = function QuestInfo(_ref) {
35439
35447
  if (onClose) onClose();
35440
35448
  },
35441
35449
  width: "730px",
35442
- cancelDrag: ".equipment-container-body .arrow-selector"
35450
+ cancelDrag: ".equipment-container-body .arrow-selector",
35451
+ scale: scale
35443
35452
  }, quests.length >= 2 ? React.createElement(QuestsContainer, null, currentIndex !== 0 && React.createElement(SelectArrow, {
35444
35453
  direction: "left",
35445
35454
  onPointerDown: onLeftClick
@@ -35525,13 +35534,15 @@ var Thumbnail = /*#__PURE__*/styled.img.withConfig({
35525
35534
 
35526
35535
  var QuestList = function QuestList(_ref) {
35527
35536
  var quests = _ref.quests,
35528
- onClose = _ref.onClose;
35537
+ onClose = _ref.onClose,
35538
+ scale = _ref.scale;
35529
35539
  return React.createElement(QuestDraggableContainer$1, {
35530
35540
  type: RPGUIContainerTypes.Framed,
35531
35541
  onCloseButton: function onCloseButton() {
35532
35542
  if (onClose) onClose();
35533
35543
  },
35534
- width: "520px"
35544
+ width: "520px",
35545
+ scale: scale
35535
35546
  }, React.createElement("div", {
35536
35547
  style: {
35537
35548
  width: '100%'
@@ -35875,7 +35886,8 @@ var SkillsContainer = function SkillsContainer(_ref) {
35875
35886
  var onCloseButton = _ref.onCloseButton,
35876
35887
  skill = _ref.skill,
35877
35888
  atlasIMG = _ref.atlasIMG,
35878
- atlasJSON = _ref.atlasJSON;
35889
+ atlasJSON = _ref.atlasJSON,
35890
+ scale = _ref.scale;
35879
35891
  var onRenderSkillCategory = function onRenderSkillCategory(category) {
35880
35892
  var skillCategory = skillProps[category];
35881
35893
  var skillCategoryColor = skillCategory.color;
@@ -35902,7 +35914,8 @@ var SkillsContainer = function SkillsContainer(_ref) {
35902
35914
  };
35903
35915
  return React.createElement(SkillsDraggableContainer, {
35904
35916
  title: "Skills",
35905
- cancelDrag: "#skillsDiv"
35917
+ cancelDrag: "#skillsDiv",
35918
+ scale: scale
35906
35919
  }, onCloseButton && React.createElement(CloseButton$3, {
35907
35920
  onPointerDown: onCloseButton
35908
35921
  }, "X"), React.createElement(SkillsContainerDiv, {
@@ -36016,7 +36029,8 @@ var Spellbook = function Spellbook(_ref) {
36016
36029
  shortcuts = _ref.shortcuts,
36017
36030
  removeShortcut = _ref.removeShortcut,
36018
36031
  atlasIMG = _ref.atlasIMG,
36019
- atlasJSON = _ref.atlasJSON;
36032
+ atlasJSON = _ref.atlasJSON,
36033
+ scale = _ref.scale;
36020
36034
  var _useState = useState(''),
36021
36035
  search = _useState[0],
36022
36036
  setSearch = _useState[1];
@@ -36052,7 +36066,8 @@ var Spellbook = function Spellbook(_ref) {
36052
36066
  onCloseButton: onClose,
36053
36067
  width: "inherit",
36054
36068
  height: "inherit",
36055
- cancelDrag: "#spellbook-search, #shortcuts_list, .spell"
36069
+ cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
36070
+ scale: scale
36056
36071
  }, React.createElement(Container$k, null, React.createElement(Title$7, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
36057
36072
  setSettingShortcutIndex: setSettingShortcutIndex,
36058
36073
  settingShortcutIndex: settingShortcutIndex,
@@ -36123,8 +36138,11 @@ var img$c = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHMAAABHCAYAAAA0qHhdA
36123
36138
  var TimeWidget = function TimeWidget(_ref) {
36124
36139
  var onClose = _ref.onClose,
36125
36140
  TimeClock = _ref.TimeClock,
36126
- periodOfDay = _ref.periodOfDay;
36127
- return React.createElement(Draggable, null, React.createElement(WidgetContainer, null, React.createElement(CloseButton$4, {
36141
+ periodOfDay = _ref.periodOfDay,
36142
+ scale = _ref.scale;
36143
+ return React.createElement(Draggable, {
36144
+ scale: scale
36145
+ }, React.createElement(WidgetContainer, null, React.createElement(CloseButton$4, {
36128
36146
  onPointerDown: onClose
36129
36147
  }, "X"), React.createElement(DayNightContainer, null, React.createElement(DayNightPeriod, {
36130
36148
  periodOfDay: periodOfDay
@@ -36312,7 +36330,8 @@ var TradingMenu = function TradingMenu(_ref) {
36312
36330
  if (onClose) onClose();
36313
36331
  },
36314
36332
  width: "600px",
36315
- cancelDrag: "#TraderContainer"
36333
+ cancelDrag: "#TraderContainer",
36334
+ scale: scale
36316
36335
  }, React.createElement(React.Fragment, null, React.createElement("div", {
36317
36336
  style: {
36318
36337
  width: '100%'