@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.
@@ -7,6 +7,7 @@ interface IProps {
7
7
  onPositionChange?: (position: IPosition) => void;
8
8
  onOutsideClick?: () => void;
9
9
  initialPosition?: IPosition;
10
+ scale?: number;
10
11
  }
11
12
  export declare const SlotsContainer: React.FC<IProps>;
12
13
  export {};
@@ -15,5 +15,6 @@ export interface IDraggableContainerProps {
15
15
  onPositionChange?: (position: IPosition) => void;
16
16
  onOutsideClick?: () => void;
17
17
  initialPosition?: IPosition;
18
+ scale?: number;
18
19
  }
19
20
  export declare const DraggableContainer: React.FC<IDraggableContainerProps>;
@@ -9,7 +9,7 @@ export interface IEquipmentSetProps {
9
9
  onItemDragEnd?: (quantity?: number) => void;
10
10
  onItemPlaceDrop?: (item: IItem | null, slotIndex: number, itemContainerType: ItemContainerType | null) => void;
11
11
  onItemOutsideDrop?: (item: IItem, position: IPosition) => void;
12
- dragScale?: number;
12
+ scale?: number;
13
13
  checkIfItemCanBeMoved: () => boolean;
14
14
  checkIfItemShouldDragEnd?: () => boolean;
15
15
  onMouseOver?: (e: any, slotIndex: number, item: IItem | null) => void;
@@ -9,7 +9,7 @@ export interface IItemContainerProps {
9
9
  onItemDragEnd?: (quantity?: number) => void;
10
10
  onOutsideDrop?: (item: IItem, position: IPosition) => void;
11
11
  onItemPlaceDrop?: (item: IItem | null, slotIndex: number, itemContainerType: ItemContainerType | null) => void;
12
- dragScale?: number;
12
+ scale?: number;
13
13
  checkIfItemCanBeMoved: () => boolean;
14
14
  checkIfItemShouldDragEnd?: () => boolean;
15
15
  onMouseOver?: (e: any, slotIndex: number, item: IItem | null) => void;
@@ -10,5 +10,6 @@ export interface IQuestInfoProps {
10
10
  buttons?: IQuestsButtonProps[];
11
11
  quests: IQuest[];
12
12
  onChangeQuest: (currentQuestIndex: number, currentQuestId: string) => void;
13
+ scale?: number;
13
14
  }
14
15
  export declare const QuestInfo: React.FC<IQuestInfoProps>;
@@ -3,5 +3,6 @@ import React from 'react';
3
3
  export interface IQuestListProps {
4
4
  quests?: IQuest[];
5
5
  onClose: () => void;
6
+ scale?: number;
6
7
  }
7
8
  export declare const QuestList: React.FC<IQuestListProps>;
@@ -5,5 +5,6 @@ export interface ISkillContainerProps {
5
5
  onCloseButton: () => void;
6
6
  atlasJSON: any;
7
7
  atlasIMG: any;
8
+ scale?: number;
8
9
  }
9
10
  export declare const SkillsContainer: React.FC<ISkillContainerProps>;
@@ -13,5 +13,6 @@ export interface ISpellbookProps {
13
13
  removeShortcut: (index: number) => void;
14
14
  atlasIMG: any;
15
15
  atlasJSON: any;
16
+ scale?: number;
16
17
  }
17
18
  export declare const Spellbook: React.FC<ISpellbookProps>;
@@ -4,5 +4,6 @@ export interface IClockWidgetProps {
4
4
  onClose?: () => void;
5
5
  TimeClock: string;
6
6
  periodOfDay: PeriodOfDay;
7
+ scale?: number;
7
8
  }
8
9
  export declare const TimeWidget: React.FC<IClockWidgetProps>;
@@ -33223,7 +33223,8 @@ var DraggableContainer = function DraggableContainer(_ref) {
33223
33223
  initialPosition = _ref$initialPosition === void 0 ? {
33224
33224
  x: 0,
33225
33225
  y: 0
33226
- } : _ref$initialPosition;
33226
+ } : _ref$initialPosition,
33227
+ scale = _ref.scale;
33227
33228
  var draggableRef = React.useRef(null);
33228
33229
  useOutsideClick(draggableRef, 'item-container');
33229
33230
  React.useEffect(function () {
@@ -33249,7 +33250,8 @@ var DraggableContainer = function DraggableContainer(_ref) {
33249
33250
  });
33250
33251
  }
33251
33252
  },
33252
- defaultPosition: initialPosition
33253
+ defaultPosition: initialPosition,
33254
+ scale: scale
33253
33255
  }, React__default.createElement(Container$6, {
33254
33256
  ref: draggableRef,
33255
33257
  width: width,
@@ -33831,7 +33833,7 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
33831
33833
  }, 100);
33832
33834
  } else if (item) {
33833
33835
  var isTouch = false;
33834
- if (e.type === 'touchend' && !isSelectingShortcut) {
33836
+ if (!isContextMenuDisabled && e.type === 'touchend' && !isSelectingShortcut) {
33835
33837
  isTouch = true;
33836
33838
  setIsTooltipMobileVisible(true);
33837
33839
  }
@@ -34289,7 +34291,8 @@ var CraftBook = function CraftBook(_ref) {
34289
34291
  if (onClose) {
34290
34292
  onClose();
34291
34293
  }
34292
- }
34294
+ },
34295
+ scale: scale
34293
34296
  }, React__default.createElement("div", {
34294
34297
  style: {
34295
34298
  width: '100%'
@@ -34446,7 +34449,7 @@ var EquipmentSet = function EquipmentSet(_ref) {
34446
34449
  onItemOutsideDrop = _ref.onItemOutsideDrop,
34447
34450
  checkIfItemCanBeMoved = _ref.checkIfItemCanBeMoved,
34448
34451
  checkIfItemShouldDragEnd = _ref.checkIfItemShouldDragEnd,
34449
- dragScale = _ref.dragScale;
34452
+ scale = _ref.scale;
34450
34453
  var neck = equipmentSet.neck,
34451
34454
  leftHand = equipmentSet.leftHand,
34452
34455
  ring = equipmentSet.ring,
@@ -34491,7 +34494,7 @@ var EquipmentSet = function EquipmentSet(_ref) {
34491
34494
  onDragEnd: function onDragEnd(quantity) {
34492
34495
  if (onItemDragEnd) onItemDragEnd(quantity);
34493
34496
  },
34494
- dragScale: dragScale,
34497
+ dragScale: scale,
34495
34498
  checkIfItemCanBeMoved: checkIfItemCanBeMoved,
34496
34499
  checkIfItemShouldDragEnd: checkIfItemShouldDragEnd,
34497
34500
  onPlaceDrop: function onPlaceDrop(item, slotIndex, itemContainerType) {
@@ -34512,7 +34515,8 @@ var EquipmentSet = function EquipmentSet(_ref) {
34512
34515
  if (onClose) onClose();
34513
34516
  },
34514
34517
  width: "330px",
34515
- cancelDrag: ".equipment-container-body"
34518
+ cancelDrag: ".equipment-container-body",
34519
+ scale: scale
34516
34520
  }, React__default.createElement(EquipmentSetContainer, {
34517
34521
  className: "equipment-container-body"
34518
34522
  }, React__default.createElement(EquipmentColumn, null, onRenderEquipmentSlotRange(0, 3)), React__default.createElement(EquipmentColumn, null, onRenderEquipmentSlotRange(3, 7)), React__default.createElement(EquipmentColumn, null, onRenderEquipmentSlotRange(7, 10))));
@@ -34532,7 +34536,8 @@ var SlotsContainer = function SlotsContainer(_ref) {
34532
34536
  onClose = _ref.onClose,
34533
34537
  _onPositionChange = _ref.onPositionChange,
34534
34538
  onOutsideClick = _ref.onOutsideClick,
34535
- initialPosition = _ref.initialPosition;
34539
+ initialPosition = _ref.initialPosition,
34540
+ scale = _ref.scale;
34536
34541
  return React__default.createElement(DraggableContainer, {
34537
34542
  title: title,
34538
34543
  type: exports.RPGUIContainerTypes.Framed,
@@ -34554,7 +34559,8 @@ var SlotsContainer = function SlotsContainer(_ref) {
34554
34559
  }
34555
34560
  },
34556
34561
  onOutsideClick: onOutsideClick,
34557
- initialPosition: initialPosition
34562
+ initialPosition: initialPosition,
34563
+ scale: scale
34558
34564
  }, children);
34559
34565
  };
34560
34566
 
@@ -34796,7 +34802,7 @@ var ItemContainer$1 = function ItemContainer(_ref) {
34796
34802
  checkIfItemCanBeMoved = _ref.checkIfItemCanBeMoved,
34797
34803
  initialPosition = _ref.initialPosition,
34798
34804
  checkIfItemShouldDragEnd = _ref.checkIfItemShouldDragEnd,
34799
- dragScale = _ref.dragScale,
34805
+ scale = _ref.scale,
34800
34806
  shortcuts = _ref.shortcuts,
34801
34807
  setItemShortcut = _ref.setItemShortcut,
34802
34808
  removeShortcut = _ref.removeShortcut,
@@ -34841,7 +34847,7 @@ var ItemContainer$1 = function ItemContainer(_ref) {
34841
34847
  onDragEnd: function onDragEnd(quantity) {
34842
34848
  if (onItemDragEnd) onItemDragEnd(quantity);
34843
34849
  },
34844
- dragScale: dragScale,
34850
+ dragScale: scale,
34845
34851
  checkIfItemCanBeMoved: checkIfItemCanBeMoved,
34846
34852
  checkIfItemShouldDragEnd: checkIfItemShouldDragEnd,
34847
34853
  openQuantitySelector: function openQuantitySelector(maxQuantity, callback) {
@@ -34868,7 +34874,8 @@ var ItemContainer$1 = function ItemContainer(_ref) {
34868
34874
  return React__default.createElement(React__default.Fragment, null, React__default.createElement(SlotsContainer, {
34869
34875
  title: itemContainer.name || 'Container',
34870
34876
  onClose: onClose,
34871
- initialPosition: initialPosition
34877
+ initialPosition: initialPosition,
34878
+ scale: scale
34872
34879
  }, type === shared.ItemContainerType.Inventory && shortcuts && removeShortcut && React__default.createElement(ShortcutsSetter, {
34873
34880
  setSettingShortcutIndex: setSettingShortcutIndex,
34874
34881
  settingShortcutIndex: settingShortcutIndex,
@@ -35416,7 +35423,8 @@ var QuestInfo = function QuestInfo(_ref) {
35416
35423
  var quests = _ref.quests,
35417
35424
  onClose = _ref.onClose,
35418
35425
  buttons = _ref.buttons,
35419
- onChangeQuest = _ref.onChangeQuest;
35426
+ onChangeQuest = _ref.onChangeQuest,
35427
+ scale = _ref.scale;
35420
35428
  var _useState = React.useState(0),
35421
35429
  currentIndex = _useState[0],
35422
35430
  setCurrentIndex = _useState[1];
@@ -35442,7 +35450,8 @@ var QuestInfo = function QuestInfo(_ref) {
35442
35450
  if (onClose) onClose();
35443
35451
  },
35444
35452
  width: "730px",
35445
- cancelDrag: ".equipment-container-body .arrow-selector"
35453
+ cancelDrag: ".equipment-container-body .arrow-selector",
35454
+ scale: scale
35446
35455
  }, quests.length >= 2 ? React__default.createElement(QuestsContainer, null, currentIndex !== 0 && React__default.createElement(SelectArrow, {
35447
35456
  direction: "left",
35448
35457
  onPointerDown: onLeftClick
@@ -35528,13 +35537,15 @@ var Thumbnail = /*#__PURE__*/styled.img.withConfig({
35528
35537
 
35529
35538
  var QuestList = function QuestList(_ref) {
35530
35539
  var quests = _ref.quests,
35531
- onClose = _ref.onClose;
35540
+ onClose = _ref.onClose,
35541
+ scale = _ref.scale;
35532
35542
  return React__default.createElement(QuestDraggableContainer$1, {
35533
35543
  type: exports.RPGUIContainerTypes.Framed,
35534
35544
  onCloseButton: function onCloseButton() {
35535
35545
  if (onClose) onClose();
35536
35546
  },
35537
- width: "520px"
35547
+ width: "520px",
35548
+ scale: scale
35538
35549
  }, React__default.createElement("div", {
35539
35550
  style: {
35540
35551
  width: '100%'
@@ -35878,7 +35889,8 @@ var SkillsContainer = function SkillsContainer(_ref) {
35878
35889
  var onCloseButton = _ref.onCloseButton,
35879
35890
  skill = _ref.skill,
35880
35891
  atlasIMG = _ref.atlasIMG,
35881
- atlasJSON = _ref.atlasJSON;
35892
+ atlasJSON = _ref.atlasJSON,
35893
+ scale = _ref.scale;
35882
35894
  var onRenderSkillCategory = function onRenderSkillCategory(category) {
35883
35895
  var skillCategory = skillProps[category];
35884
35896
  var skillCategoryColor = skillCategory.color;
@@ -35905,7 +35917,8 @@ var SkillsContainer = function SkillsContainer(_ref) {
35905
35917
  };
35906
35918
  return React__default.createElement(SkillsDraggableContainer, {
35907
35919
  title: "Skills",
35908
- cancelDrag: "#skillsDiv"
35920
+ cancelDrag: "#skillsDiv",
35921
+ scale: scale
35909
35922
  }, onCloseButton && React__default.createElement(CloseButton$3, {
35910
35923
  onPointerDown: onCloseButton
35911
35924
  }, "X"), React__default.createElement(SkillsContainerDiv, {
@@ -36019,7 +36032,8 @@ var Spellbook = function Spellbook(_ref) {
36019
36032
  shortcuts = _ref.shortcuts,
36020
36033
  removeShortcut = _ref.removeShortcut,
36021
36034
  atlasIMG = _ref.atlasIMG,
36022
- atlasJSON = _ref.atlasJSON;
36035
+ atlasJSON = _ref.atlasJSON,
36036
+ scale = _ref.scale;
36023
36037
  var _useState = React.useState(''),
36024
36038
  search = _useState[0],
36025
36039
  setSearch = _useState[1];
@@ -36055,7 +36069,8 @@ var Spellbook = function Spellbook(_ref) {
36055
36069
  onCloseButton: onClose,
36056
36070
  width: "inherit",
36057
36071
  height: "inherit",
36058
- cancelDrag: "#spellbook-search, #shortcuts_list, .spell"
36072
+ cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
36073
+ scale: scale
36059
36074
  }, React__default.createElement(Container$k, null, React__default.createElement(Title$7, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
36060
36075
  setSettingShortcutIndex: setSettingShortcutIndex,
36061
36076
  settingShortcutIndex: settingShortcutIndex,
@@ -36126,8 +36141,11 @@ var img$c = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHMAAABHCAYAAAA0qHhdA
36126
36141
  var TimeWidget = function TimeWidget(_ref) {
36127
36142
  var onClose = _ref.onClose,
36128
36143
  TimeClock = _ref.TimeClock,
36129
- periodOfDay = _ref.periodOfDay;
36130
- return React__default.createElement(Draggable, null, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$4, {
36144
+ periodOfDay = _ref.periodOfDay,
36145
+ scale = _ref.scale;
36146
+ return React__default.createElement(Draggable, {
36147
+ scale: scale
36148
+ }, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$4, {
36131
36149
  onPointerDown: onClose
36132
36150
  }, "X"), React__default.createElement(DayNightContainer, null, React__default.createElement(DayNightPeriod, {
36133
36151
  periodOfDay: periodOfDay
@@ -36315,7 +36333,8 @@ var TradingMenu = function TradingMenu(_ref) {
36315
36333
  if (onClose) onClose();
36316
36334
  },
36317
36335
  width: "600px",
36318
- cancelDrag: "#TraderContainer"
36336
+ cancelDrag: "#TraderContainer",
36337
+ scale: scale
36319
36338
  }, React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
36320
36339
  style: {
36321
36340
  width: '100%'