@rpg-engine/long-bow 0.8.30 → 0.8.31
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 +218 -273
- 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 +219 -274
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/InformationCenter/InformationCenter.tsx +5 -19
- package/src/components/InformationCenter/sections/bestiary/InformationCenterBestiarySection.tsx +26 -28
- package/src/components/InformationCenter/sections/bestiary/InformationCenterNPCDetails.tsx +31 -7
- package/src/components/InformationCenter/sections/items/InformationCenterItemsSection.tsx +26 -21
- package/src/components/InformationCenter/shared/BaseInformationDetails.tsx +34 -11
- package/src/components/Item/Cards/ItemInfo.tsx +1 -18
- package/src/components/Item/Inventory/ItemSlot.tsx +3 -15
- package/src/components/Item/Inventory/ItemSlotRenderer.tsx +2 -6
- package/src/components/shared/Collapsible/Collapsible.tsx +1 -1
- package/src/mocks/itemContainer.mocks.ts +0 -7
- package/dist/components/Item/Inventory/ItemSlotQuality.d.ts +0 -2
- package/src/components/Item/Inventory/ItemSlotQuality.ts +0 -18
|
@@ -27525,6 +27525,175 @@ function useTouchTarget() {
|
|
|
27525
27525
|
return getTouchTarget;
|
|
27526
27526
|
}
|
|
27527
27527
|
|
|
27528
|
+
var rarityColor = function rarityColor(item) {
|
|
27529
|
+
switch (item == null ? void 0 : item.rarity) {
|
|
27530
|
+
case shared.ItemRarities.Uncommon:
|
|
27531
|
+
return 'rgba(13, 193, 13, 0.6)';
|
|
27532
|
+
case shared.ItemRarities.Rare:
|
|
27533
|
+
return 'rgba(8, 104, 187, 0.6)';
|
|
27534
|
+
case shared.ItemRarities.Epic:
|
|
27535
|
+
return 'rgba(191, 0, 255, 0.6)';
|
|
27536
|
+
case shared.ItemRarities.Legendary:
|
|
27537
|
+
return 'rgba(255, 191, 0,0.6)';
|
|
27538
|
+
default:
|
|
27539
|
+
return null;
|
|
27540
|
+
}
|
|
27541
|
+
};
|
|
27542
|
+
|
|
27543
|
+
var gemColors = {
|
|
27544
|
+
'emerald-gem': '#50C878',
|
|
27545
|
+
'topaz-radiance': '#FFC87C',
|
|
27546
|
+
'sapphire-gem': '#0F52BA',
|
|
27547
|
+
'ruby-gem': '#E0115F',
|
|
27548
|
+
'misty-quartz-gem': '#D9D9F3',
|
|
27549
|
+
'coral-reef-gem': '#FF7F50',
|
|
27550
|
+
'jasper-gem': '#D73B3E',
|
|
27551
|
+
'earthstone-gem': '#8B4513',
|
|
27552
|
+
'obsidian-gem': '#0B0C0E',
|
|
27553
|
+
'amethyst-gem': '#9966CC'
|
|
27554
|
+
};
|
|
27555
|
+
var defaultColor = '#FFFFFF'; // Default color (white)
|
|
27556
|
+
var onRenderGems = function onRenderGems(item) {
|
|
27557
|
+
var _item$attachedGems;
|
|
27558
|
+
var gemQty = ((_item$attachedGems = item.attachedGems) == null ? void 0 : _item$attachedGems.length) || 0;
|
|
27559
|
+
if (gemQty > 0) {
|
|
27560
|
+
return React__default.createElement(ItemSlotQty, {
|
|
27561
|
+
item: item
|
|
27562
|
+
});
|
|
27563
|
+
}
|
|
27564
|
+
return undefined;
|
|
27565
|
+
};
|
|
27566
|
+
var ItemSlotQty = function ItemSlotQty(_ref) {
|
|
27567
|
+
var _item$attachedGems2;
|
|
27568
|
+
var item = _ref.item;
|
|
27569
|
+
var itemId = item._id;
|
|
27570
|
+
return React__default.createElement(ItemQtyContainer, {
|
|
27571
|
+
key: "qty-" + itemId,
|
|
27572
|
+
className: "item-slot-qty"
|
|
27573
|
+
}, (_item$attachedGems2 = item.attachedGems) == null ? void 0 : _item$attachedGems2.map(function (gem, index) {
|
|
27574
|
+
return React__default.createElement(Gem, {
|
|
27575
|
+
key: itemId + "-gem-" + index,
|
|
27576
|
+
color: gemColors[gem.key] || defaultColor
|
|
27577
|
+
});
|
|
27578
|
+
}));
|
|
27579
|
+
};
|
|
27580
|
+
var ItemQtyContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
27581
|
+
displayName: "ItemGem__ItemQtyContainer",
|
|
27582
|
+
componentId: "sc-1ekseaq-0"
|
|
27583
|
+
})(["position:relative;width:85%;height:16px;top:28px;left:0px;pointer-events:none;transform:scale(0.8);display:flex;align-items:center;justify-content:flex-start;opacity:0.8;"]);
|
|
27584
|
+
var Gem = /*#__PURE__*/styled__default.div.withConfig({
|
|
27585
|
+
displayName: "ItemGem__Gem",
|
|
27586
|
+
componentId: "sc-1ekseaq-1"
|
|
27587
|
+
})(["width:8px;height:8px;background:", ";border:1px solid black;transform:rotate(45deg);margin:0 2px;box-shadow:0 0 5px ", ";transition:transform 0.2s,box-shadow 0.2s;&:hover{transform:rotate(45deg) scale(1.2);box-shadow:0 0 10px ", ";}"], function (_ref2) {
|
|
27588
|
+
var color = _ref2.color;
|
|
27589
|
+
return "radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8), transparent 30%), \n linear-gradient(45deg, " + color + ", " + color + " 50%, rgba(255, 255, 255, 0.2))";
|
|
27590
|
+
}, function (_ref3) {
|
|
27591
|
+
var color = _ref3.color;
|
|
27592
|
+
return color;
|
|
27593
|
+
}, function (_ref4) {
|
|
27594
|
+
var color = _ref4.color;
|
|
27595
|
+
return color;
|
|
27596
|
+
});
|
|
27597
|
+
|
|
27598
|
+
var onRenderStackInfo = function onRenderStackInfo(itemId, stackQty) {
|
|
27599
|
+
var isFractionalStackQty = stackQty % 1 !== 0;
|
|
27600
|
+
var isLargerThan999 = stackQty > 999;
|
|
27601
|
+
var qtyClassName = 'regular';
|
|
27602
|
+
if (isLargerThan999) qtyClassName = 'small';
|
|
27603
|
+
if (isFractionalStackQty) qtyClassName = 'xsmall';
|
|
27604
|
+
if (stackQty > 1) {
|
|
27605
|
+
return React__default.createElement(ItemSlotQty$1, {
|
|
27606
|
+
itemId: itemId,
|
|
27607
|
+
stackQty: stackQty,
|
|
27608
|
+
qtyClassName: qtyClassName
|
|
27609
|
+
});
|
|
27610
|
+
}
|
|
27611
|
+
return undefined;
|
|
27612
|
+
};
|
|
27613
|
+
var ItemSlotQty$1 = function ItemSlotQty(_ref) {
|
|
27614
|
+
var itemId = _ref.itemId,
|
|
27615
|
+
stackQty = _ref.stackQty,
|
|
27616
|
+
qtyClassName = _ref.qtyClassName;
|
|
27617
|
+
return React__default.createElement(ItemQtyContainer$1, {
|
|
27618
|
+
key: "qty-" + itemId,
|
|
27619
|
+
className: "item-slot-qty"
|
|
27620
|
+
}, React__default.createElement(Ellipsis, {
|
|
27621
|
+
maxLines: 1,
|
|
27622
|
+
maxWidth: "48px"
|
|
27623
|
+
}, React__default.createElement(ItemQty, {
|
|
27624
|
+
className: qtyClassName
|
|
27625
|
+
}, Math.round(stackQty * 100) / 100, ' ')));
|
|
27626
|
+
};
|
|
27627
|
+
var ItemQtyContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
27628
|
+
displayName: "ItemSlotQty__ItemQtyContainer",
|
|
27629
|
+
componentId: "sc-keb1s5-0"
|
|
27630
|
+
})(["position:relative;width:85%;height:16px;top:25px;left:2px;pointer-events:none;display:flex;justify-content:flex-end;"]);
|
|
27631
|
+
var ItemQty = /*#__PURE__*/styled__default.span.withConfig({
|
|
27632
|
+
displayName: "ItemSlotQty__ItemQty",
|
|
27633
|
+
componentId: "sc-keb1s5-1"
|
|
27634
|
+
})(["&.regular{font-size:", ";}&.small{font-size:", ";}&.xsmall{font-size:", ";}"], uiFonts.size.small, uiFonts.size.xsmall, uiFonts.size.xxsmall);
|
|
27635
|
+
|
|
27636
|
+
var ItemSlotRenderer = function ItemSlotRenderer(_ref) {
|
|
27637
|
+
var containerType = _ref.containerType,
|
|
27638
|
+
atlasJSON = _ref.atlasJSON,
|
|
27639
|
+
atlasIMG = _ref.atlasIMG,
|
|
27640
|
+
slotSpriteMask = _ref.slotSpriteMask,
|
|
27641
|
+
item = _ref.item;
|
|
27642
|
+
var renderStackInfo = function renderStackInfo(item) {
|
|
27643
|
+
return item.stackQty && item.stackQty > 1 && onRenderStackInfo(item._id, item.stackQty);
|
|
27644
|
+
};
|
|
27645
|
+
var renderGems = function renderGems(item) {
|
|
27646
|
+
return item.attachedGems && onRenderGems(item);
|
|
27647
|
+
};
|
|
27648
|
+
var renderItem = function renderItem(item) {
|
|
27649
|
+
if (!(item != null && item.texturePath)) {
|
|
27650
|
+
return null;
|
|
27651
|
+
}
|
|
27652
|
+
return React__default.createElement(ErrorBoundary, {
|
|
27653
|
+
key: item._id
|
|
27654
|
+
}, React__default.createElement(SpriteFromAtlas, {
|
|
27655
|
+
atlasIMG: atlasIMG,
|
|
27656
|
+
atlasJSON: atlasJSON,
|
|
27657
|
+
spriteKey: shared.getItemTextureKeyPath({
|
|
27658
|
+
key: item.texturePath,
|
|
27659
|
+
texturePath: item.texturePath,
|
|
27660
|
+
stackQty: item.stackQty || 1,
|
|
27661
|
+
isStackable: item.isStackable
|
|
27662
|
+
}, atlasJSON),
|
|
27663
|
+
imgScale: 3,
|
|
27664
|
+
imgClassname: "sprite-from-atlas-img--item",
|
|
27665
|
+
tintColor: item.tintColor
|
|
27666
|
+
}), renderStackInfo(item), renderGems(item));
|
|
27667
|
+
};
|
|
27668
|
+
var renderEquipment = function renderEquipment(itemToRender) {
|
|
27669
|
+
var _itemToRender$allowed;
|
|
27670
|
+
if (!(itemToRender != null && itemToRender.texturePath) || !((_itemToRender$allowed = itemToRender.allowedEquipSlotType) != null && _itemToRender$allowed.includes(slotSpriteMask))) {
|
|
27671
|
+
return React__default.createElement(ErrorBoundary, {
|
|
27672
|
+
key: uuid.v4()
|
|
27673
|
+
}, React__default.createElement(SpriteFromAtlas, {
|
|
27674
|
+
key: uuid.v4(),
|
|
27675
|
+
atlasIMG: atlasIMG,
|
|
27676
|
+
atlasJSON: atlasJSON,
|
|
27677
|
+
spriteKey: EquipmentSlotSpriteByType[slotSpriteMask],
|
|
27678
|
+
imgScale: 3,
|
|
27679
|
+
grayScale: true,
|
|
27680
|
+
opacity: 0.4,
|
|
27681
|
+
imgClassname: "sprite-from-atlas-img--item"
|
|
27682
|
+
}));
|
|
27683
|
+
}
|
|
27684
|
+
return renderItem(itemToRender);
|
|
27685
|
+
};
|
|
27686
|
+
var onRenderSlot = function onRenderSlot(itemToRender) {
|
|
27687
|
+
switch (containerType) {
|
|
27688
|
+
case shared.ItemContainerType.Equipment:
|
|
27689
|
+
return renderEquipment(itemToRender);
|
|
27690
|
+
default:
|
|
27691
|
+
return renderItem(itemToRender);
|
|
27692
|
+
}
|
|
27693
|
+
};
|
|
27694
|
+
return React__default.createElement(React__default.Fragment, null, onRenderSlot(item));
|
|
27695
|
+
};
|
|
27696
|
+
|
|
27528
27697
|
var generateContextMenuListOptions = function generateContextMenuListOptions(actionsByTypeList) {
|
|
27529
27698
|
var contextMenu = actionsByTypeList.map(function (action) {
|
|
27530
27699
|
return {
|
|
@@ -27786,194 +27955,6 @@ var ItemSlotDraggingProvider = function ItemSlotDraggingProvider(_ref) {
|
|
|
27786
27955
|
}, children);
|
|
27787
27956
|
};
|
|
27788
27957
|
|
|
27789
|
-
var qualityColorHex = function qualityColorHex(item) {
|
|
27790
|
-
switch (item == null ? void 0 : item.quality) {
|
|
27791
|
-
case shared.ItemQualityLevel.HighQuality:
|
|
27792
|
-
return '#00bfff';
|
|
27793
|
-
case shared.ItemQualityLevel.Exceptional:
|
|
27794
|
-
return '#ff8c00';
|
|
27795
|
-
case shared.ItemQualityLevel.Mastercrafted:
|
|
27796
|
-
return '#ff00ff';
|
|
27797
|
-
case shared.ItemQualityLevel.Ancient:
|
|
27798
|
-
return '#ffd700';
|
|
27799
|
-
case shared.ItemQualityLevel.Mythic:
|
|
27800
|
-
return '#ff0080';
|
|
27801
|
-
default:
|
|
27802
|
-
return 'transparent';
|
|
27803
|
-
}
|
|
27804
|
-
};
|
|
27805
|
-
|
|
27806
|
-
var rarityColor = function rarityColor(item) {
|
|
27807
|
-
switch (item == null ? void 0 : item.rarity) {
|
|
27808
|
-
case shared.ItemRarities.Uncommon:
|
|
27809
|
-
return 'rgba(13, 193, 13, 0.6)';
|
|
27810
|
-
case shared.ItemRarities.Rare:
|
|
27811
|
-
return 'rgba(8, 104, 187, 0.6)';
|
|
27812
|
-
case shared.ItemRarities.Epic:
|
|
27813
|
-
return 'rgba(191, 0, 255, 0.6)';
|
|
27814
|
-
case shared.ItemRarities.Legendary:
|
|
27815
|
-
return 'rgba(255, 191, 0,0.6)';
|
|
27816
|
-
default:
|
|
27817
|
-
return null;
|
|
27818
|
-
}
|
|
27819
|
-
};
|
|
27820
|
-
|
|
27821
|
-
var gemColors = {
|
|
27822
|
-
'emerald-gem': '#50C878',
|
|
27823
|
-
'topaz-radiance': '#FFC87C',
|
|
27824
|
-
'sapphire-gem': '#0F52BA',
|
|
27825
|
-
'ruby-gem': '#E0115F',
|
|
27826
|
-
'misty-quartz-gem': '#D9D9F3',
|
|
27827
|
-
'coral-reef-gem': '#FF7F50',
|
|
27828
|
-
'jasper-gem': '#D73B3E',
|
|
27829
|
-
'earthstone-gem': '#8B4513',
|
|
27830
|
-
'obsidian-gem': '#0B0C0E',
|
|
27831
|
-
'amethyst-gem': '#9966CC'
|
|
27832
|
-
};
|
|
27833
|
-
var defaultColor = '#FFFFFF'; // Default color (white)
|
|
27834
|
-
var onRenderGems = function onRenderGems(item) {
|
|
27835
|
-
var _item$attachedGems;
|
|
27836
|
-
var gemQty = ((_item$attachedGems = item.attachedGems) == null ? void 0 : _item$attachedGems.length) || 0;
|
|
27837
|
-
if (gemQty > 0) {
|
|
27838
|
-
return React__default.createElement(ItemSlotQty, {
|
|
27839
|
-
item: item
|
|
27840
|
-
});
|
|
27841
|
-
}
|
|
27842
|
-
return undefined;
|
|
27843
|
-
};
|
|
27844
|
-
var ItemSlotQty = function ItemSlotQty(_ref) {
|
|
27845
|
-
var _item$attachedGems2;
|
|
27846
|
-
var item = _ref.item;
|
|
27847
|
-
var itemId = item._id;
|
|
27848
|
-
return React__default.createElement(ItemQtyContainer, {
|
|
27849
|
-
key: "qty-" + itemId,
|
|
27850
|
-
className: "item-slot-qty"
|
|
27851
|
-
}, (_item$attachedGems2 = item.attachedGems) == null ? void 0 : _item$attachedGems2.map(function (gem, index) {
|
|
27852
|
-
return React__default.createElement(Gem, {
|
|
27853
|
-
key: itemId + "-gem-" + index,
|
|
27854
|
-
color: gemColors[gem.key] || defaultColor
|
|
27855
|
-
});
|
|
27856
|
-
}));
|
|
27857
|
-
};
|
|
27858
|
-
var ItemQtyContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
27859
|
-
displayName: "ItemGem__ItemQtyContainer",
|
|
27860
|
-
componentId: "sc-1ekseaq-0"
|
|
27861
|
-
})(["position:relative;width:85%;height:16px;top:28px;left:0px;pointer-events:none;transform:scale(0.8);display:flex;align-items:center;justify-content:flex-start;opacity:0.8;"]);
|
|
27862
|
-
var Gem = /*#__PURE__*/styled__default.div.withConfig({
|
|
27863
|
-
displayName: "ItemGem__Gem",
|
|
27864
|
-
componentId: "sc-1ekseaq-1"
|
|
27865
|
-
})(["width:8px;height:8px;background:", ";border:1px solid black;transform:rotate(45deg);margin:0 2px;box-shadow:0 0 5px ", ";transition:transform 0.2s,box-shadow 0.2s;&:hover{transform:rotate(45deg) scale(1.2);box-shadow:0 0 10px ", ";}"], function (_ref2) {
|
|
27866
|
-
var color = _ref2.color;
|
|
27867
|
-
return "radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8), transparent 30%), \n linear-gradient(45deg, " + color + ", " + color + " 50%, rgba(255, 255, 255, 0.2))";
|
|
27868
|
-
}, function (_ref3) {
|
|
27869
|
-
var color = _ref3.color;
|
|
27870
|
-
return color;
|
|
27871
|
-
}, function (_ref4) {
|
|
27872
|
-
var color = _ref4.color;
|
|
27873
|
-
return color;
|
|
27874
|
-
});
|
|
27875
|
-
|
|
27876
|
-
var onRenderStackInfo = function onRenderStackInfo(itemId, stackQty) {
|
|
27877
|
-
var isFractionalStackQty = stackQty % 1 !== 0;
|
|
27878
|
-
var isLargerThan999 = stackQty > 999;
|
|
27879
|
-
var qtyClassName = 'regular';
|
|
27880
|
-
if (isLargerThan999) qtyClassName = 'small';
|
|
27881
|
-
if (isFractionalStackQty) qtyClassName = 'xsmall';
|
|
27882
|
-
if (stackQty > 1) {
|
|
27883
|
-
return React__default.createElement(ItemSlotQty$1, {
|
|
27884
|
-
itemId: itemId,
|
|
27885
|
-
stackQty: stackQty,
|
|
27886
|
-
qtyClassName: qtyClassName
|
|
27887
|
-
});
|
|
27888
|
-
}
|
|
27889
|
-
return undefined;
|
|
27890
|
-
};
|
|
27891
|
-
var ItemSlotQty$1 = function ItemSlotQty(_ref) {
|
|
27892
|
-
var itemId = _ref.itemId,
|
|
27893
|
-
stackQty = _ref.stackQty,
|
|
27894
|
-
qtyClassName = _ref.qtyClassName;
|
|
27895
|
-
return React__default.createElement(ItemQtyContainer$1, {
|
|
27896
|
-
key: "qty-" + itemId,
|
|
27897
|
-
className: "item-slot-qty"
|
|
27898
|
-
}, React__default.createElement(Ellipsis, {
|
|
27899
|
-
maxLines: 1,
|
|
27900
|
-
maxWidth: "48px"
|
|
27901
|
-
}, React__default.createElement(ItemQty, {
|
|
27902
|
-
className: qtyClassName
|
|
27903
|
-
}, Math.round(stackQty * 100) / 100, ' ')));
|
|
27904
|
-
};
|
|
27905
|
-
var ItemQtyContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
27906
|
-
displayName: "ItemSlotQty__ItemQtyContainer",
|
|
27907
|
-
componentId: "sc-keb1s5-0"
|
|
27908
|
-
})(["position:relative;width:85%;height:16px;top:25px;left:2px;pointer-events:none;display:flex;justify-content:flex-end;"]);
|
|
27909
|
-
var ItemQty = /*#__PURE__*/styled__default.span.withConfig({
|
|
27910
|
-
displayName: "ItemSlotQty__ItemQty",
|
|
27911
|
-
componentId: "sc-keb1s5-1"
|
|
27912
|
-
})(["&.regular{font-size:", ";}&.small{font-size:", ";}&.xsmall{font-size:", ";}"], uiFonts.size.small, uiFonts.size.xsmall, uiFonts.size.xxsmall);
|
|
27913
|
-
|
|
27914
|
-
var ItemSlotRenderer = function ItemSlotRenderer(_ref) {
|
|
27915
|
-
var containerType = _ref.containerType,
|
|
27916
|
-
atlasJSON = _ref.atlasJSON,
|
|
27917
|
-
atlasIMG = _ref.atlasIMG,
|
|
27918
|
-
slotSpriteMask = _ref.slotSpriteMask,
|
|
27919
|
-
item = _ref.item;
|
|
27920
|
-
var renderStackInfo = function renderStackInfo(item) {
|
|
27921
|
-
return item.stackQty && item.stackQty > 1 && onRenderStackInfo(item._id, item.stackQty);
|
|
27922
|
-
};
|
|
27923
|
-
var renderGems = function renderGems(item) {
|
|
27924
|
-
return item.attachedGems && onRenderGems(item);
|
|
27925
|
-
};
|
|
27926
|
-
var renderItem = function renderItem(item) {
|
|
27927
|
-
if (!(item != null && item.texturePath)) {
|
|
27928
|
-
return null;
|
|
27929
|
-
}
|
|
27930
|
-
return React__default.createElement(ErrorBoundary, {
|
|
27931
|
-
key: item._id
|
|
27932
|
-
}, item.quality && item.quality !== shared.ItemQualityLevel.Normal && React__default.createElement("div", {
|
|
27933
|
-
className: "quality-star"
|
|
27934
|
-
}, "\u2605"), React__default.createElement(SpriteFromAtlas, {
|
|
27935
|
-
atlasIMG: atlasIMG,
|
|
27936
|
-
atlasJSON: atlasJSON,
|
|
27937
|
-
spriteKey: shared.getItemTextureKeyPath({
|
|
27938
|
-
key: item.texturePath,
|
|
27939
|
-
texturePath: item.texturePath,
|
|
27940
|
-
stackQty: item.stackQty || 1,
|
|
27941
|
-
isStackable: item.isStackable
|
|
27942
|
-
}, atlasJSON),
|
|
27943
|
-
imgScale: 3,
|
|
27944
|
-
imgClassname: "sprite-from-atlas-img--item",
|
|
27945
|
-
tintColor: item.tintColor
|
|
27946
|
-
}), renderStackInfo(item), renderGems(item));
|
|
27947
|
-
};
|
|
27948
|
-
var renderEquipment = function renderEquipment(itemToRender) {
|
|
27949
|
-
var _itemToRender$allowed;
|
|
27950
|
-
if (!(itemToRender != null && itemToRender.texturePath) || !((_itemToRender$allowed = itemToRender.allowedEquipSlotType) != null && _itemToRender$allowed.includes(slotSpriteMask))) {
|
|
27951
|
-
return React__default.createElement(ErrorBoundary, {
|
|
27952
|
-
key: uuid.v4()
|
|
27953
|
-
}, React__default.createElement(SpriteFromAtlas, {
|
|
27954
|
-
key: uuid.v4(),
|
|
27955
|
-
atlasIMG: atlasIMG,
|
|
27956
|
-
atlasJSON: atlasJSON,
|
|
27957
|
-
spriteKey: EquipmentSlotSpriteByType[slotSpriteMask],
|
|
27958
|
-
imgScale: 3,
|
|
27959
|
-
grayScale: true,
|
|
27960
|
-
opacity: 0.4,
|
|
27961
|
-
imgClassname: "sprite-from-atlas-img--item"
|
|
27962
|
-
}));
|
|
27963
|
-
}
|
|
27964
|
-
return renderItem(itemToRender);
|
|
27965
|
-
};
|
|
27966
|
-
var onRenderSlot = function onRenderSlot(itemToRender) {
|
|
27967
|
-
switch (containerType) {
|
|
27968
|
-
case shared.ItemContainerType.Equipment:
|
|
27969
|
-
return renderEquipment(itemToRender);
|
|
27970
|
-
default:
|
|
27971
|
-
return renderItem(itemToRender);
|
|
27972
|
-
}
|
|
27973
|
-
};
|
|
27974
|
-
return onRenderSlot(item);
|
|
27975
|
-
};
|
|
27976
|
-
|
|
27977
27958
|
var EquipmentSlotSpriteByType = {
|
|
27978
27959
|
Neck: 'accessories/corruption-necklace.png',
|
|
27979
27960
|
LeftHand: 'swords/broad-sword.png',
|
|
@@ -28290,7 +28271,7 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
|
|
|
28290
28271
|
var Container$a = /*#__PURE__*/styled__default.div.withConfig({
|
|
28291
28272
|
displayName: "ItemSlot__Container",
|
|
28292
28273
|
componentId: "sc-l2j5ef-0"
|
|
28293
|
-
})(["margin:0.1rem;.react-draggable-dragging{opacity:", ";}position:relative;.sprite-from-atlas-img--item{position:relative;top:1.5rem;left:1.5rem;border-color:", ";box-shadow:", " inset,", ";}
|
|
28274
|
+
})(["margin:0.1rem;.react-draggable-dragging{opacity:", ";}position:relative;.sprite-from-atlas-img--item{position:relative;top:1.5rem;left:1.5rem;border-color:", ";box-shadow:", " inset,", ";}&::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;border-radius:12px;pointer-events:none;animation:", ";@keyframes bg-color-change{0%{background-color:rgba(255 255 255 / 0.5);}50%{background-color:transparent;}100%{background-color:rgba(255 255 255 / 0.5);}}}"], function (_ref2) {
|
|
28294
28275
|
var isDraggingItem = _ref2.isDraggingItem;
|
|
28295
28276
|
return isDraggingItem ? 0 : 1;
|
|
28296
28277
|
}, function (_ref3) {
|
|
@@ -28303,10 +28284,7 @@ var Container$a = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
28303
28284
|
var item = _ref5.item;
|
|
28304
28285
|
return "0 0 4px 3px " + rarityColor(item);
|
|
28305
28286
|
}, function (_ref6) {
|
|
28306
|
-
var
|
|
28307
|
-
return qualityColorHex(item);
|
|
28308
|
-
}, function (_ref7) {
|
|
28309
|
-
var isSelectingShortcut = _ref7.isSelectingShortcut;
|
|
28287
|
+
var isSelectingShortcut = _ref6.isSelectingShortcut;
|
|
28310
28288
|
return isSelectingShortcut ? 'bg-color-change 1s infinite' : 'none';
|
|
28311
28289
|
});
|
|
28312
28290
|
var ItemContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
@@ -28423,16 +28401,10 @@ var ItemInfo = function ItemInfo(_ref) {
|
|
|
28423
28401
|
var Container$b = /*#__PURE__*/styled__default.div.withConfig({
|
|
28424
28402
|
displayName: "ItemInfo__Container",
|
|
28425
28403
|
componentId: "sc-1xm4q8k-0"
|
|
28426
|
-
})(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;font-size:", ";border:3px solid ", ";
|
|
28404
|
+
})(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;font-size:", ";border:3px solid ", ";height:max-content;width:18rem;@media (max-width:640px){width:80vw;}"], uiFonts.size.small, function (_ref2) {
|
|
28427
28405
|
var _rarityColor;
|
|
28428
28406
|
var item = _ref2.item;
|
|
28429
28407
|
return (_rarityColor = rarityColor(item)) != null ? _rarityColor : uiColors.lightGray;
|
|
28430
|
-
}, function (_ref3) {
|
|
28431
|
-
var item = _ref3.item;
|
|
28432
|
-
return "0 0 5px 2px " + rarityColor(item);
|
|
28433
|
-
}, function (_ref4) {
|
|
28434
|
-
var item = _ref4.item;
|
|
28435
|
-
return (item == null ? void 0 : item.quality) && item.quality !== shared.ItemQualityLevel.Normal && "\n &::before {\n content: '\u2605';\n position: absolute;\n top: 0.2rem;\n left: 0.5rem;\n font-size: 1.2rem;\n color: " + qualityColorHex(item) + ";\n text-shadow: 0 0 3px black;\n }\n ";
|
|
28436
28408
|
});
|
|
28437
28409
|
var Title$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
28438
28410
|
displayName: "ItemInfo__Title",
|
|
@@ -28441,8 +28413,8 @@ var Title$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
28441
28413
|
var Rarity = /*#__PURE__*/styled__default.div.withConfig({
|
|
28442
28414
|
displayName: "ItemInfo__Rarity",
|
|
28443
28415
|
componentId: "sc-1xm4q8k-2"
|
|
28444
|
-
})(["font-size:", ";font-weight:normal;margin-top:0.2rem;color:", ";filter:brightness(1.5);"], uiFonts.size.small, function (
|
|
28445
|
-
var item =
|
|
28416
|
+
})(["font-size:", ";font-weight:normal;margin-top:0.2rem;color:", ";filter:brightness(1.5);"], uiFonts.size.small, function (_ref3) {
|
|
28417
|
+
var item = _ref3.item;
|
|
28446
28418
|
return rarityColor(item);
|
|
28447
28419
|
});
|
|
28448
28420
|
var Type = /*#__PURE__*/styled__default.div.withConfig({
|
|
@@ -28456,8 +28428,8 @@ var LevelRequirement = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
28456
28428
|
var Statistic = /*#__PURE__*/styled__default.div.withConfig({
|
|
28457
28429
|
displayName: "ItemInfo__Statistic",
|
|
28458
28430
|
componentId: "sc-1xm4q8k-5"
|
|
28459
|
-
})(["margin-bottom:0.4rem;width:100%;color:", ";.label{display:inline-block;margin-right:0.5rem;color:inherit;}.value{display:inline-block;color:inherit;}&.better,.better{color:", ";}&.worse,.worse{color:", ";}"], function (
|
|
28460
|
-
var $isSpecial =
|
|
28431
|
+
})(["margin-bottom:0.4rem;width:100%;color:", ";.label{display:inline-block;margin-right:0.5rem;color:inherit;}.value{display:inline-block;color:inherit;}&.better,.better{color:", ";}&.worse,.worse{color:", ";}"], function (_ref4) {
|
|
28432
|
+
var $isSpecial = _ref4.$isSpecial;
|
|
28461
28433
|
return $isSpecial ? uiColors.darkYellow : 'inherit';
|
|
28462
28434
|
}, uiColors.lightGreen, uiColors.cardinal);
|
|
28463
28435
|
var Description = /*#__PURE__*/styled__default.div.withConfig({
|
|
@@ -31164,7 +31136,7 @@ var Icon$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
31164
31136
|
var Content$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31165
31137
|
displayName: "Collapsible__Content",
|
|
31166
31138
|
componentId: "sc-s4h8ey-4"
|
|
31167
|
-
})(["padding:
|
|
31139
|
+
})(["padding:6px;"]);
|
|
31168
31140
|
|
|
31169
31141
|
var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
31170
31142
|
var name = _ref.name,
|
|
@@ -31189,15 +31161,15 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
31189
31161
|
var Container$p = /*#__PURE__*/styled__default.div.withConfig({
|
|
31190
31162
|
displayName: "BaseInformationDetails__Container",
|
|
31191
31163
|
componentId: "sc-1vguuz8-0"
|
|
31192
|
-
})(["position:
|
|
31164
|
+
})(["position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:9999;"]);
|
|
31193
31165
|
var Overlay = /*#__PURE__*/styled__default.div.withConfig({
|
|
31194
31166
|
displayName: "BaseInformationDetails__Overlay",
|
|
31195
31167
|
componentId: "sc-1vguuz8-1"
|
|
31196
|
-
})(["position:
|
|
31168
|
+
})(["position:fixed;inset:0;background-color:rgba(0,0,0,0.8);"]);
|
|
31197
31169
|
var Modal = /*#__PURE__*/styled__default.div.withConfig({
|
|
31198
31170
|
displayName: "BaseInformationDetails__Modal",
|
|
31199
31171
|
componentId: "sc-1vguuz8-2"
|
|
31200
|
-
})(["position:
|
|
31172
|
+
})(["position:fixed;background-color:rgba(0,0,0,0.95);border-radius:4px;padding:12px;overflow:hidden;z-index:1;font-family:'Press Start 2P',cursive;border:1px solid ", ";box-shadow:0 2px 4px rgba(0,0,0,0.2);width:90%;height:90%;top:5%;left:5%;max-width:800px;margin:0 auto;@media (max-width:768px){width:100%;height:100%;top:0;left:0;border-radius:0;padding:8px;}&::-webkit-scrollbar{width:2px;}&::-webkit-scrollbar-track{background:transparent;}&::-webkit-scrollbar-thumb{background-color:", ";border-radius:4px;opacity:0.5;&:hover{opacity:1;}}scrollbar-width:thin;scrollbar-color:", " transparent;"], uiColors.darkGray, uiColors.yellow, uiColors.yellow);
|
|
31201
31173
|
var CloseButton$5 = /*#__PURE__*/styled__default.button.withConfig({
|
|
31202
31174
|
displayName: "BaseInformationDetails__CloseButton",
|
|
31203
31175
|
componentId: "sc-1vguuz8-3"
|
|
@@ -31209,7 +31181,7 @@ var Header$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31209
31181
|
var Content$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31210
31182
|
displayName: "BaseInformationDetails__Content",
|
|
31211
31183
|
componentId: "sc-1vguuz8-5"
|
|
31212
|
-
})(["display:flex;flex-direction:column;gap:
|
|
31184
|
+
})(["display:flex;flex-direction:column;gap:12px;height:calc(100% - 80px);overflow-y:auto;overflow-x:hidden;padding-right:6px;margin-right:-6px;@media (max-width:768px){height:calc(100% - 64px);gap:8px;padding-right:4px;margin-right:-4px;}"]);
|
|
31213
31185
|
var Title$4 = /*#__PURE__*/styled__default.h2.withConfig({
|
|
31214
31186
|
displayName: "BaseInformationDetails__Title",
|
|
31215
31187
|
componentId: "sc-1vguuz8-6"
|
|
@@ -31455,6 +31427,7 @@ var InformationCenterItemsSection = function InformationCenterItemsSection(_ref)
|
|
|
31455
31427
|
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
31456
31428
|
initialSearchQuery = _ref.initialSearchQuery,
|
|
31457
31429
|
tabId = _ref.tabId;
|
|
31430
|
+
var isMobile = shared.isMobileOrTablet();
|
|
31458
31431
|
var _useState = React.useState(initialSearchQuery),
|
|
31459
31432
|
searchQuery = _useState[0],
|
|
31460
31433
|
setSearchQuery = _useState[1];
|
|
@@ -31496,14 +31469,16 @@ var InformationCenterItemsSection = function InformationCenterItemsSection(_ref)
|
|
|
31496
31469
|
}) || [];
|
|
31497
31470
|
};
|
|
31498
31471
|
var handleMouseEnter = function handleMouseEnter(e, item) {
|
|
31499
|
-
|
|
31500
|
-
|
|
31501
|
-
|
|
31502
|
-
|
|
31503
|
-
|
|
31472
|
+
if (!isMobile) {
|
|
31473
|
+
setTooltipPosition({
|
|
31474
|
+
x: e.clientX + TOOLTIP_OFFSET,
|
|
31475
|
+
y: e.clientY
|
|
31476
|
+
});
|
|
31477
|
+
setHoveredItem(item);
|
|
31478
|
+
}
|
|
31504
31479
|
};
|
|
31505
31480
|
var handleMouseMove = function handleMouseMove(e) {
|
|
31506
|
-
if (hoveredItem) {
|
|
31481
|
+
if (!isMobile && hoveredItem) {
|
|
31507
31482
|
setTooltipPosition({
|
|
31508
31483
|
x: e.clientX + TOOLTIP_OFFSET,
|
|
31509
31484
|
y: e.clientY
|
|
@@ -31511,15 +31486,13 @@ var InformationCenterItemsSection = function InformationCenterItemsSection(_ref)
|
|
|
31511
31486
|
}
|
|
31512
31487
|
};
|
|
31513
31488
|
var handleMouseLeave = function handleMouseLeave() {
|
|
31514
|
-
|
|
31489
|
+
if (!isMobile) {
|
|
31490
|
+
setHoveredItem(null);
|
|
31491
|
+
}
|
|
31515
31492
|
};
|
|
31516
31493
|
var handleTouchStart = function handleTouchStart(e, item) {
|
|
31517
|
-
|
|
31518
|
-
|
|
31519
|
-
x: touch.clientX + TOOLTIP_OFFSET,
|
|
31520
|
-
y: touch.clientY
|
|
31521
|
-
});
|
|
31522
|
-
setHoveredItem(item);
|
|
31494
|
+
e.preventDefault();
|
|
31495
|
+
setSelectedItem(item);
|
|
31523
31496
|
};
|
|
31524
31497
|
var handleItemClick = function handleItemClick(item) {
|
|
31525
31498
|
setSelectedItem(item);
|
|
@@ -31569,14 +31542,14 @@ var InformationCenterItemsSection = function InformationCenterItemsSection(_ref)
|
|
|
31569
31542
|
tabId: tabId,
|
|
31570
31543
|
layout: "grid",
|
|
31571
31544
|
itemHeight: "180px"
|
|
31572
|
-
}), hoveredItem && React__default.createElement(TooltipWrapper, {
|
|
31545
|
+
}), !isMobile && hoveredItem && React__default.createElement(TooltipWrapper, {
|
|
31573
31546
|
style: {
|
|
31574
31547
|
top: tooltipPosition.y,
|
|
31575
31548
|
left: tooltipPosition.x
|
|
31576
31549
|
}
|
|
31577
31550
|
}, React__default.createElement(InformationCenterItemTooltip, {
|
|
31578
31551
|
item: hoveredItem
|
|
31579
|
-
})), selectedItem && React__default.createElement(InformationCenterItemDetails, {
|
|
31552
|
+
})), selectedItem && React__default.createElement(Portal, null, React__default.createElement(InformationCenterItemDetails, {
|
|
31580
31553
|
item: selectedItem,
|
|
31581
31554
|
itemsAtlasJSON: itemsAtlasJSON,
|
|
31582
31555
|
itemsAtlasIMG: itemsAtlasIMG,
|
|
@@ -31584,7 +31557,7 @@ var InformationCenterItemsSection = function InformationCenterItemsSection(_ref)
|
|
|
31584
31557
|
onBack: function onBack() {
|
|
31585
31558
|
return setSelectedItem(null);
|
|
31586
31559
|
}
|
|
31587
|
-
}));
|
|
31560
|
+
})));
|
|
31588
31561
|
};
|
|
31589
31562
|
var TooltipWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
31590
31563
|
displayName: "InformationCenterItemsSection__TooltipWrapper",
|
|
@@ -31720,7 +31693,7 @@ var Value$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
31720
31693
|
var StyledCollapsible$1 = /*#__PURE__*/styled__default(Collapsible).withConfig({
|
|
31721
31694
|
displayName: "InformationCenterNPCDetails__StyledCollapsible",
|
|
31722
31695
|
componentId: "sc-fdu3xl-4"
|
|
31723
|
-
})(["background:rgba(255,255,255,0.05);border-radius:4px;overflow:
|
|
31696
|
+
})(["background:rgba(255,255,255,0.05);border-radius:4px;overflow:visible;scrollbar-width:thin;scrollbar-color:", " transparent;width:100%;box-sizing:border-box;"], uiColors.darkGray);
|
|
31724
31697
|
var StatGrid$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31725
31698
|
displayName: "InformationCenterNPCDetails__StatGrid",
|
|
31726
31699
|
componentId: "sc-fdu3xl-5"
|
|
@@ -31772,19 +31745,19 @@ var Separator = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
31772
31745
|
var LootSearchContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
31773
31746
|
displayName: "InformationCenterNPCDetails__LootSearchContainer",
|
|
31774
31747
|
componentId: "sc-fdu3xl-17"
|
|
31775
|
-
})(["padding:
|
|
31748
|
+
})(["padding:8px;background:rgba(0,0,0,0.2);border-radius:4px;margin:8px 8px 4px;box-sizing:border-box;"]);
|
|
31776
31749
|
var StyledSearchBar$1 = /*#__PURE__*/styled__default(SearchBar).withConfig({
|
|
31777
31750
|
displayName: "InformationCenterNPCDetails__StyledSearchBar",
|
|
31778
31751
|
componentId: "sc-fdu3xl-18"
|
|
31779
|
-
})(["width:100%;"]);
|
|
31752
|
+
})(["width:100%;box-sizing:border-box;input{background:rgba(0,0,0,0.2) !important;border:1px solid rgba(255,255,255,0.1) !important;box-sizing:border-box;&:focus{border-color:", " !important;}}"], uiColors.yellow);
|
|
31780
31753
|
var LootGrid = /*#__PURE__*/styled__default.div.withConfig({
|
|
31781
31754
|
displayName: "InformationCenterNPCDetails__LootGrid",
|
|
31782
31755
|
componentId: "sc-fdu3xl-19"
|
|
31783
|
-
})(["display:grid;grid-template-columns:repeat(auto-
|
|
31756
|
+
})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:4px;padding:4px 8px;width:100%;max-width:100%;box-sizing:border-box;@media (max-width:768px){grid-template-columns:1fr;padding:4px;}"]);
|
|
31784
31757
|
var LootItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
31785
31758
|
displayName: "InformationCenterNPCDetails__LootItem",
|
|
31786
31759
|
componentId: "sc-fdu3xl-20"
|
|
31787
|
-
})(["display:flex;align-items:center;gap:
|
|
31760
|
+
})(["display:flex;align-items:center;gap:4px;background:rgba(255,255,255,0.05);padding:4px;border-radius:4px;min-width:0;"]);
|
|
31788
31761
|
var LootDetails = /*#__PURE__*/styled__default.div.withConfig({
|
|
31789
31762
|
displayName: "InformationCenterNPCDetails__LootDetails",
|
|
31790
31763
|
componentId: "sc-fdu3xl-21"
|
|
@@ -31913,6 +31886,7 @@ var InformationCenterBestiarySection = function InformationCenterBestiarySection
|
|
|
31913
31886
|
entitiesAtlasIMG = _ref.entitiesAtlasIMG,
|
|
31914
31887
|
initialSearchQuery = _ref.initialSearchQuery,
|
|
31915
31888
|
tabId = _ref.tabId;
|
|
31889
|
+
var isMobile = shared.isMobileOrTablet();
|
|
31916
31890
|
var _useState = React.useState(initialSearchQuery),
|
|
31917
31891
|
searchQuery = _useState[0],
|
|
31918
31892
|
setSearchQuery = _useState[1];
|
|
@@ -31922,10 +31896,8 @@ var InformationCenterBestiarySection = function InformationCenterBestiarySection
|
|
|
31922
31896
|
var _useState3 = React.useState(null),
|
|
31923
31897
|
selectedMonster = _useState3[0],
|
|
31924
31898
|
setSelectedMonster = _useState3[1];
|
|
31925
|
-
var _useState4 = React.useState('ontouchstart' in window),
|
|
31926
|
-
isTouchDevice = _useState4[0];
|
|
31927
31899
|
var handleMouseEnter = function handleMouseEnter(monster, event) {
|
|
31928
|
-
if (!
|
|
31900
|
+
if (!isMobile && !selectedMonster) {
|
|
31929
31901
|
setTooltipData({
|
|
31930
31902
|
npc: monster,
|
|
31931
31903
|
position: {
|
|
@@ -31936,12 +31908,12 @@ var InformationCenterBestiarySection = function InformationCenterBestiarySection
|
|
|
31936
31908
|
}
|
|
31937
31909
|
};
|
|
31938
31910
|
var handleMouseLeave = function handleMouseLeave() {
|
|
31939
|
-
if (!
|
|
31911
|
+
if (!isMobile) {
|
|
31940
31912
|
setTooltipData(null);
|
|
31941
31913
|
}
|
|
31942
31914
|
};
|
|
31943
31915
|
var handleMouseMove = function handleMouseMove(event) {
|
|
31944
|
-
if (!
|
|
31916
|
+
if (!isMobile && tooltipData) {
|
|
31945
31917
|
setTooltipData(_extends({}, tooltipData, {
|
|
31946
31918
|
position: {
|
|
31947
31919
|
x: event.clientX,
|
|
@@ -31951,29 +31923,17 @@ var InformationCenterBestiarySection = function InformationCenterBestiarySection
|
|
|
31951
31923
|
}
|
|
31952
31924
|
};
|
|
31953
31925
|
var handleTouchStart = function handleTouchStart(monster, event) {
|
|
31954
|
-
|
|
31955
|
-
|
|
31956
|
-
|
|
31957
|
-
if ((tooltipData == null ? void 0 : tooltipData.npc.id) === monster.id) {
|
|
31958
|
-
setTooltipData(null);
|
|
31959
|
-
} else {
|
|
31960
|
-
setTooltipData({
|
|
31961
|
-
npc: monster,
|
|
31962
|
-
position: {
|
|
31963
|
-
x: touch.clientX,
|
|
31964
|
-
y: touch.clientY
|
|
31965
|
-
}
|
|
31966
|
-
});
|
|
31967
|
-
}
|
|
31968
|
-
}
|
|
31926
|
+
event.preventDefault();
|
|
31927
|
+
setSelectedMonster(monster);
|
|
31928
|
+
setTooltipData(null);
|
|
31969
31929
|
};
|
|
31970
31930
|
var handleMonsterClick = function handleMonsterClick(monster) {
|
|
31971
31931
|
setSelectedMonster(monster);
|
|
31972
31932
|
setTooltipData(null);
|
|
31973
31933
|
};
|
|
31974
|
-
var
|
|
31975
|
-
selectedBestiaryCategory =
|
|
31976
|
-
setSelectedBestiaryCategory =
|
|
31934
|
+
var _useState4 = React.useState('all'),
|
|
31935
|
+
selectedBestiaryCategory = _useState4[0],
|
|
31936
|
+
setSelectedBestiaryCategory = _useState4[1];
|
|
31977
31937
|
var bestiaryCategoryOptions = [{
|
|
31978
31938
|
id: 0,
|
|
31979
31939
|
value: 'all',
|
|
@@ -32048,7 +32008,7 @@ var InformationCenterBestiarySection = function InformationCenterBestiarySection
|
|
|
32048
32008
|
},
|
|
32049
32009
|
dependencies: [selectedBestiaryCategory],
|
|
32050
32010
|
itemHeight: "180px"
|
|
32051
|
-
}), tooltipData && React__default.createElement(Portal, null, React__default.createElement(TooltipWrapper$1, {
|
|
32011
|
+
}), !isMobile && tooltipData && React__default.createElement(Portal, null, React__default.createElement(TooltipWrapper$1, {
|
|
32052
32012
|
style: {
|
|
32053
32013
|
position: 'fixed',
|
|
32054
32014
|
left: tooltipData.position.x + 10,
|
|
@@ -32058,7 +32018,7 @@ var InformationCenterBestiarySection = function InformationCenterBestiarySection
|
|
|
32058
32018
|
npc: tooltipData.npc,
|
|
32059
32019
|
itemsAtlasJSON: itemsAtlasJSON,
|
|
32060
32020
|
itemsAtlasIMG: itemsAtlasIMG
|
|
32061
|
-
}))), selectedMonster && React__default.createElement(InformationCenterNPCDetails, {
|
|
32021
|
+
}))), selectedMonster && React__default.createElement(Portal, null, React__default.createElement(InformationCenterNPCDetails, {
|
|
32062
32022
|
npc: selectedMonster,
|
|
32063
32023
|
itemsAtlasJSON: itemsAtlasJSON,
|
|
32064
32024
|
itemsAtlasIMG: itemsAtlasIMG,
|
|
@@ -32069,7 +32029,7 @@ var InformationCenterBestiarySection = function InformationCenterBestiarySection
|
|
|
32069
32029
|
onBack: function onBack() {
|
|
32070
32030
|
return setSelectedMonster(null);
|
|
32071
32031
|
}
|
|
32072
|
-
}));
|
|
32032
|
+
})));
|
|
32073
32033
|
};
|
|
32074
32034
|
var TooltipWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
32075
32035
|
displayName: "InformationCenterBestiarySection__TooltipWrapper",
|
|
@@ -32280,9 +32240,6 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32280
32240
|
var _useState = React.useState('bestiary'),
|
|
32281
32241
|
activeTab = _useState[0],
|
|
32282
32242
|
setActiveTab = _useState[1];
|
|
32283
|
-
var _useState2 = React.useState(null),
|
|
32284
|
-
selectedItem = _useState2[0],
|
|
32285
|
-
setSelectedItem = _useState2[1];
|
|
32286
32243
|
if (loading) {
|
|
32287
32244
|
return React__default.createElement(LoadingMessage, null, "Loading...");
|
|
32288
32245
|
}
|
|
@@ -32332,7 +32289,8 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32332
32289
|
})
|
|
32333
32290
|
}];
|
|
32334
32291
|
return React__default.createElement(DraggableContainer, {
|
|
32335
|
-
title: "Information Center"
|
|
32292
|
+
title: "Information Center",
|
|
32293
|
+
type: exports.RPGUIContainerTypes.Framed
|
|
32336
32294
|
}, React__default.createElement(Container$r, null, React__default.createElement(InternalTabs, {
|
|
32337
32295
|
tabs: tabs,
|
|
32338
32296
|
activeTextColor: "#000000",
|
|
@@ -32342,19 +32300,6 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32342
32300
|
inactiveColor: "#6b7280",
|
|
32343
32301
|
borderColor: "#f59e0b",
|
|
32344
32302
|
hoverColor: "#fef3c7"
|
|
32345
|
-
}), selectedItem && React__default.createElement(InformationCenterItemDetails, {
|
|
32346
|
-
item: selectedItem,
|
|
32347
|
-
itemsAtlasJSON: itemsAtlasJSON,
|
|
32348
|
-
itemsAtlasIMG: itemsAtlasIMG,
|
|
32349
|
-
droppedBy: bestiaryItems.filter(function (npc) {
|
|
32350
|
-
var _npc$loots;
|
|
32351
|
-
return (_npc$loots = npc.loots) == null ? void 0 : _npc$loots.some(function (loot) {
|
|
32352
|
-
return loot.itemBlueprintKey === selectedItem.key;
|
|
32353
|
-
});
|
|
32354
|
-
}),
|
|
32355
|
-
onBack: function onBack() {
|
|
32356
|
-
return setSelectedItem(null);
|
|
32357
|
-
}
|
|
32358
32303
|
})));
|
|
32359
32304
|
};
|
|
32360
32305
|
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|