@rpg-engine/long-bow 0.2.50 → 0.2.52

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.
@@ -9,5 +9,6 @@ export interface IItemContainerProps {
9
9
  type: ItemContainerType;
10
10
  atlasJSON: any;
11
11
  atlasIMG: any;
12
+ disableContextMenu?: boolean;
12
13
  }
13
14
  export declare const ItemContainer: React.FC<IItemContainerProps>;
@@ -12,6 +12,7 @@ interface IProps {
12
12
  onClick: (ItemType: ItemType, itemContainerType: ItemContainerType | null, item: IItem) => void;
13
13
  atlasJSON: any;
14
14
  atlasIMG: any;
15
+ isContextMenuDisabled?: boolean;
15
16
  }
16
17
  export declare const ItemSlot: React.FC<IProps>;
17
18
  export {};
@@ -28007,6 +28007,15 @@ var generateContextMenu = function generateContextMenu(item, itemContainerType)
28007
28007
  contextActionMenu = generateContextMenuListOptions(shared.ActionsForMapContainer.Other);
28008
28008
  break;
28009
28009
  }
28010
+ var contextActionMenuDontHaveUseWith = !contextActionMenu.find(function (action) {
28011
+ return action.text.toLowerCase().includes('use with');
28012
+ });
28013
+ if (item.hasUseWith && contextActionMenuDontHaveUseWith) {
28014
+ contextActionMenu.push({
28015
+ id: 'use-with',
28016
+ text: 'Use with...'
28017
+ });
28018
+ }
28010
28019
  }
28011
28020
  return contextActionMenu;
28012
28021
  };
@@ -28033,7 +28042,9 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
28033
28042
  _onClick = _ref.onClick,
28034
28043
  _onSelected = _ref.onSelected,
28035
28044
  atlasJSON = _ref.atlasJSON,
28036
- atlasIMG = _ref.atlasIMG;
28045
+ atlasIMG = _ref.atlasIMG,
28046
+ _ref$isContextMenuDis = _ref.isContextMenuDisabled,
28047
+ isContextMenuDisabled = _ref$isContextMenuDis === void 0 ? false : _ref$isContextMenuDis;
28037
28048
  var _useState = React.useState(false),
28038
28049
  isTooltipVisible = _useState[0],
28039
28050
  setTooltipVisible = _useState[1];
@@ -28148,7 +28159,7 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
28148
28159
  _onClick(item.type, containerType, item);
28149
28160
  }
28150
28161
  }
28151
- }, isContextMenuVisible && contextActions && React__default.createElement(RelativeListMenu, {
28162
+ }, !isContextMenuDisabled && isContextMenuVisible && contextActions && React__default.createElement(RelativeListMenu, {
28152
28163
  options: contextActions,
28153
28164
  onSelected: function onSelected(optionId) {
28154
28165
  setIsContextMenuVisible(false);
@@ -28796,12 +28807,15 @@ var ItemContainer = function ItemContainer(_ref) {
28796
28807
  onItemClick = _ref.onItemClick,
28797
28808
  type = _ref.type,
28798
28809
  atlasJSON = _ref.atlasJSON,
28799
- atlasIMG = _ref.atlasIMG;
28810
+ atlasIMG = _ref.atlasIMG,
28811
+ _ref$disableContextMe = _ref.disableContextMenu,
28812
+ disableContextMenu = _ref$disableContextMe === void 0 ? false : _ref$disableContextMe;
28800
28813
  var onRenderSlots = function onRenderSlots() {
28801
28814
  var slots = [];
28802
28815
  for (var i = 0; i < itemContainer.slotQty; i++) {
28803
28816
  var _itemContainer$slots;
28804
28817
  slots.push(React__default.createElement(ItemSlot, {
28818
+ isContextMenuDisabled: disableContextMenu,
28805
28819
  key: i,
28806
28820
  slotIndex: i,
28807
28821
  item: ((_itemContainer$slots = itemContainer.slots) == null ? void 0 : _itemContainer$slots[i]) || null,
@@ -29375,10 +29389,10 @@ var DayNightPeriod = function DayNightPeriod(_ref) {
29375
29389
  src: periodOfDaySrcFiles[periodOfDay]
29376
29390
  }));
29377
29391
  };
29378
- var GifContainer = /*#__PURE__*/styled.span.withConfig({
29392
+ var GifContainer = /*#__PURE__*/styled.div.withConfig({
29379
29393
  displayName: "DayNightPeriod__GifContainer",
29380
29394
  componentId: "sc-10t97fw-0"
29381
- })(["width:100%;"]);
29395
+ })(["width:100%;img{width:67%;}"]);
29382
29396
 
29383
29397
  var img$c = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHMAAABHCAYAA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IBw61jOAdTFikxp66bPT/YXbsnm4RF2yz0Hmgy67EcLwHDmCnlKC0D99hVmcmslntQZaCYuWYlYPgWmOkeOaeXc5bB5XF+sLs2yeMs05iC+rh5uBfF0sbO17EyHSf3HkkfMzunl3P2QZWB88SHsO246JmtpBmsSuYZoMmsJ+5Egn6CQFIvlHUkrk2GKFO5ZiiJ1AVKyEogPwDj7BbgN8M1zVwBOSIBtyDYC/VBJOAeCFuhvogEigXDTqhPIoESd4LmItQ3kUC5oKxCgc1LtUkEZIsEKvx6wnsU6rNIoFpwmUKJpsVmCVT2ARAuEqgeoJNQoH6pLhLf6gU8EAnUE2QMoPDPSxSV6ypP2T499EIkUG+gzlnaND5lo0pjv5/Ztljt2l/vRALNBl2q+y2Kj92pjTYaIDXWVZVruPree4nEJhqi6ppokGfhP6xr60VVr5O+AAAAAElFTkSuQmCC';
29384
29398
 
@@ -29395,19 +29409,19 @@ var TimeWidget = function TimeWidget(_ref) {
29395
29409
  var WidgetContainer = /*#__PURE__*/styled.div.withConfig({
29396
29410
  displayName: "TimeWidget__WidgetContainer",
29397
29411
  componentId: "sc-1ja236h-0"
29398
- })(["background-image:url(", ");background-repeat:no-repeat;width:100%;position:absolute;margin:20px;"], img$c);
29412
+ })(["background-image:url(", ");background-size:10rem;background-repeat:no-repeat;width:10rem;position:absolute;"], img$c);
29399
29413
  var Time = /*#__PURE__*/styled.div.withConfig({
29400
29414
  displayName: "TimeWidget__Time",
29401
29415
  componentId: "sc-1ja236h-1"
29402
- })(["width:100%;top:-6.95rem;right:-4.4rem;position:relative;font-size:7.5px;color:white;"]);
29416
+ })(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
29403
29417
  var CloseButton$3 = /*#__PURE__*/styled.p.withConfig({
29404
29418
  displayName: "TimeWidget__CloseButton",
29405
29419
  componentId: "sc-1ja236h-2"
29406
- })(["width:100%;position:relative;top:-1rem;right:-6.9rem;font-size:", " !important;z-index:1;"], uiFonts.size.xxsmall);
29407
- var DayNightContainer = /*#__PURE__*/styled.span.withConfig({
29420
+ })(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
29421
+ var DayNightContainer = /*#__PURE__*/styled.div.withConfig({
29408
29422
  displayName: "TimeWidget__DayNightContainer",
29409
29423
  componentId: "sc-1ja236h-3"
29410
- })(["top:-41px;left:-3px;position:relative;"]);
29424
+ })(["margin-top:-0.3rem;margin-left:-0.3rem;"]);
29411
29425
 
29412
29426
  var TradingItemRow = function TradingItemRow(_ref) {
29413
29427
  var atlasIMG = _ref.atlasIMG,