@rpg-engine/long-bow 0.3.92 → 0.3.94
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/components/Dropdown.d.ts +1 -1
- package/dist/components/Marketplace/Marketplace.d.ts +20 -0
- package/dist/components/Marketplace/MarketplaceRows.d.ts +12 -0
- package/dist/components/Marketplace/__mocks__/index.d.ts +10 -0
- package/dist/components/Spellbook/Spell.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/long-bow.cjs.development.js +190 -18
- 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 +189 -19
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/Marketplace.stories.d.ts +4 -0
- package/dist/stories/MarketplaceRows.stories.d.ts +4 -0
- package/package.json +2 -2
- package/src/components/CraftBook/CraftBook.tsx +16 -0
- package/src/components/CraftBook/MockItems.ts +13 -1
- package/src/components/Dropdown.tsx +4 -2
- package/src/components/Marketplace/Marketplace.tsx +132 -0
- package/src/components/Marketplace/MarketplaceRows.tsx +171 -0
- package/src/components/Marketplace/__mocks__/index.tsx +65 -0
- package/src/components/Spellbook/Spell.tsx +3 -3
- package/src/components/Spellbook/Spellbook.tsx +1 -1
- package/src/components/shared/Ellipsis.tsx +3 -0
- package/src/index.tsx +2 -0
- package/src/stories/Marketplace.stories.tsx +42 -0
- package/src/stories/MarketplaceRows.stories.tsx +28 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IEquipmentSet, IItem } from '@rpg-engine/shared';
|
|
2
|
+
import React, { ChangeEvent } from 'react';
|
|
3
|
+
import { IOptionsProps } from '../Dropdown';
|
|
4
|
+
export interface IMarketPlaceProps {
|
|
5
|
+
items: IItem[] | null;
|
|
6
|
+
atlasJSON: any;
|
|
7
|
+
atlasIMG: any;
|
|
8
|
+
optionsType: IOptionsProps[];
|
|
9
|
+
optionsRarity: IOptionsProps[];
|
|
10
|
+
optionsPrice: IOptionsProps[];
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
onChangeType: (value: string) => void;
|
|
13
|
+
onChangeRarity: (value: string) => void;
|
|
14
|
+
onChangeOrder: (value: string) => void;
|
|
15
|
+
onChangeNameInput: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
16
|
+
scale?: number;
|
|
17
|
+
equipmentSet?: IEquipmentSet | null;
|
|
18
|
+
onHandleClick: (value: string) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const Marketplace: React.FC<IMarketPlaceProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IEquipmentSet, IItem } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface IMarketPlaceRowsPropos {
|
|
4
|
+
atlasJSON: any;
|
|
5
|
+
atlasIMG: any;
|
|
6
|
+
item: IItem;
|
|
7
|
+
itemPrice: number;
|
|
8
|
+
equipmentSet?: IEquipmentSet | null;
|
|
9
|
+
scale?: number;
|
|
10
|
+
onHandleClick: (value: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const MarketplaceRows: React.FC<IMarketPlaceRowsPropos>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IOptionsProps } from '../../Dropdown';
|
|
2
|
+
export declare enum OrderByType {
|
|
3
|
+
Name = "Name",
|
|
4
|
+
Rarity = "Rarity",
|
|
5
|
+
Price = "Price",
|
|
6
|
+
DateAdded = "Date Added"
|
|
7
|
+
}
|
|
8
|
+
export declare const itemTypeOptions: IOptionsProps[];
|
|
9
|
+
export declare const itemRarityOptions: IOptionsProps[];
|
|
10
|
+
export declare const orderByOptions: IOptionsProps[];
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ export * from './components/Item/Inventory/ItemContainer';
|
|
|
16
16
|
export * from './components/Item/Inventory/ItemSlot';
|
|
17
17
|
export * from './components/itemSelector/ItemSelector';
|
|
18
18
|
export * from './components/ListMenu';
|
|
19
|
+
export * from './components/Marketplace/Marketplace';
|
|
20
|
+
export * from './components/Marketplace/MarketplaceRows';
|
|
19
21
|
export * from './components/NPCDialog/NPCDialog';
|
|
20
22
|
export * from './components/NPCDialog/NPCMultiDialog';
|
|
21
23
|
export * from './components/NPCDialog/QuestionDialog/QuestionDialog';
|
|
@@ -12358,14 +12358,20 @@ var Ellipsis = function Ellipsis(_ref) {
|
|
|
12358
12358
|
var Container$1 = /*#__PURE__*/styled.div.withConfig({
|
|
12359
12359
|
displayName: "Ellipsis__Container",
|
|
12360
12360
|
componentId: "sc-ysrlju-0"
|
|
12361
|
-
})([".ellipsis-1-lines{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:", ";", "}.ellipsis-2-lines{display:-webkit-box;max-width:", "px;height:25px;margin:0 auto;line-height:1;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;}.ellipsis-3-lines{display:-webkit-box;max-width:", "px;height:43px;margin:0 auto;line-height:1;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;}"], function (props) {
|
|
12361
|
+
})([".ellipsis-1-lines{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:", ";font-size:", ";", "}.ellipsis-2-lines{display:-webkit-box;max-width:", "px;height:25px;margin:0 auto;line-height:1;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;font-size:", ";}.ellipsis-3-lines{display:-webkit-box;max-width:", "px;height:43px;margin:0 auto;line-height:1;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;font-size:", ";}"], function (props) {
|
|
12362
12362
|
return props.maxWidth;
|
|
12363
|
+
}, function (props) {
|
|
12364
|
+
return props.fontSize;
|
|
12363
12365
|
}, function (props) {
|
|
12364
12366
|
return props.center && "margin: 0 auto;";
|
|
12365
12367
|
}, function (props) {
|
|
12366
12368
|
return props.maxWidth;
|
|
12369
|
+
}, function (props) {
|
|
12370
|
+
return props.fontSize;
|
|
12367
12371
|
}, function (props) {
|
|
12368
12372
|
return props.maxWidth;
|
|
12373
|
+
}, function (props) {
|
|
12374
|
+
return props.fontSize;
|
|
12369
12375
|
});
|
|
12370
12376
|
|
|
12371
12377
|
var PropertySelect = function PropertySelect(_ref) {
|
|
@@ -14165,6 +14171,7 @@ var CraftBook = function CraftBook(_ref) {
|
|
|
14165
14171
|
}), React__default.createElement(RadioInputScroller, {
|
|
14166
14172
|
className: "inputRadioCraftBook"
|
|
14167
14173
|
}, craftablesItems == null ? void 0 : craftablesItems.map(function (option, index) {
|
|
14174
|
+
var _option$levelIsOk, _option$minCraftingRe, _option$minCraftingRe2, _option$minCraftingRe3, _option$minCraftingRe4;
|
|
14168
14175
|
return React__default.createElement(RadioOptionsWrapper, {
|
|
14169
14176
|
key: index
|
|
14170
14177
|
}, React__default.createElement(SpriteAtlasWrapper, null, React__default.createElement(ItemInfoWrapper, {
|
|
@@ -14228,7 +14235,9 @@ var CraftBook = function CraftBook(_ref) {
|
|
|
14228
14235
|
spriteKey: option.texturePath,
|
|
14229
14236
|
imgScale: 1
|
|
14230
14237
|
}), React__default.createElement(StyledItem, null, modifyString(option.key), " (", option.qty, "x)"));
|
|
14231
|
-
})
|
|
14238
|
+
}), isShown && isShown.index === index && React__default.createElement(MinCraftingRequirementsText, {
|
|
14239
|
+
levelIsOk: (_option$levelIsOk = option == null ? void 0 : option.levelIsOk) != null ? _option$levelIsOk : false
|
|
14240
|
+
}, modifyString(((_option$minCraftingRe = option == null ? void 0 : (_option$minCraftingRe2 = option.minCraftingRequirements) == null ? void 0 : _option$minCraftingRe2[0]) != null ? _option$minCraftingRe : '') + " " + ((_option$minCraftingRe3 = option == null ? void 0 : (_option$minCraftingRe4 = option.minCraftingRequirements) == null ? void 0 : _option$minCraftingRe4[1]) != null ? _option$minCraftingRe3 : '')))));
|
|
14232
14241
|
})), React__default.createElement(ButtonWrapper, null, React__default.createElement(Button, {
|
|
14233
14242
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
14234
14243
|
onPointerDown: onClose
|
|
@@ -14271,6 +14280,13 @@ var ButtonWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
14271
14280
|
displayName: "CraftBook__ButtonWrapper",
|
|
14272
14281
|
componentId: "sc-19q95ue-7"
|
|
14273
14282
|
})(["display:flex;justify-content:space-around;padding-top:20px;width:100%;button{padding:0px 50px;}"]);
|
|
14283
|
+
var MinCraftingRequirementsText = /*#__PURE__*/styled.div.withConfig({
|
|
14284
|
+
displayName: "CraftBook__MinCraftingRequirementsText",
|
|
14285
|
+
componentId: "sc-19q95ue-8"
|
|
14286
|
+
})(["font-size:0.6rem;font-weight:bold;color:", ";"], function (_ref2) {
|
|
14287
|
+
var levelIsOk = _ref2.levelIsOk;
|
|
14288
|
+
return levelIsOk ? '#72f100' : 'gray';
|
|
14289
|
+
});
|
|
14274
14290
|
|
|
14275
14291
|
var DropdownSelectorContainer = function DropdownSelectorContainer(_ref) {
|
|
14276
14292
|
var title = _ref.title,
|
|
@@ -15472,6 +15488,160 @@ var ListElement$1 = /*#__PURE__*/styled.li.withConfig({
|
|
|
15472
15488
|
componentId: "sc-i9097t-1"
|
|
15473
15489
|
})(["margin-right:0.5rem;"]);
|
|
15474
15490
|
|
|
15491
|
+
var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
15492
|
+
var atlasJSON = _ref.atlasJSON,
|
|
15493
|
+
atlasIMG = _ref.atlasIMG,
|
|
15494
|
+
item = _ref.item,
|
|
15495
|
+
itemPrice = _ref.itemPrice,
|
|
15496
|
+
equipmentSet = _ref.equipmentSet,
|
|
15497
|
+
scale = _ref.scale,
|
|
15498
|
+
onHandleClick = _ref.onHandleClick;
|
|
15499
|
+
return React__default.createElement(MarketPlaceWrapper, null, React__default.createElement(ItemIconContainer, null, React__default.createElement(SpriteContainer, null, React__default.createElement(ItemInfoWrapper, {
|
|
15500
|
+
item: item,
|
|
15501
|
+
atlasIMG: atlasIMG,
|
|
15502
|
+
atlasJSON: atlasJSON,
|
|
15503
|
+
equipmentSet: equipmentSet,
|
|
15504
|
+
scale: scale
|
|
15505
|
+
}, React__default.createElement(SpriteFromAtlas, {
|
|
15506
|
+
atlasIMG: atlasIMG,
|
|
15507
|
+
atlasJSON: atlasJSON,
|
|
15508
|
+
spriteKey: shared.getItemTextureKeyPath({
|
|
15509
|
+
key: item.key,
|
|
15510
|
+
stackQty: item.stackQty || 1,
|
|
15511
|
+
texturePath: item.texturePath,
|
|
15512
|
+
isStackable: item.isStackable
|
|
15513
|
+
}, atlasJSON),
|
|
15514
|
+
imgScale: 2
|
|
15515
|
+
}))), React__default.createElement(PriceValue, null, React__default.createElement("p", null, React__default.createElement(Ellipsis, {
|
|
15516
|
+
maxLines: 1,
|
|
15517
|
+
maxWidth: "150px",
|
|
15518
|
+
fontSize: "10px"
|
|
15519
|
+
}, item.name)))), React__default.createElement(QuantityContainer, null, React__default.createElement(QuantityDisplay, null, React__default.createElement(TextOverlay$1, null, React__default.createElement(Item$1, null, React__default.createElement(Ellipsis, {
|
|
15520
|
+
maxLines: 1,
|
|
15521
|
+
maxWidth: "150px",
|
|
15522
|
+
fontSize: "10px"
|
|
15523
|
+
}, item.rarity))))), React__default.createElement(ItemIconContainer, null, React__default.createElement(SpriteContainer, null, React__default.createElement(SpriteFromAtlas, {
|
|
15524
|
+
atlasIMG: atlasIMG,
|
|
15525
|
+
atlasJSON: atlasJSON,
|
|
15526
|
+
spriteKey: 'others/gold-coin-qty-4.png',
|
|
15527
|
+
imgScale: 2
|
|
15528
|
+
})), React__default.createElement(PriceValue, null, React__default.createElement("p", null, React__default.createElement(Ellipsis, {
|
|
15529
|
+
maxLines: 1,
|
|
15530
|
+
maxWidth: "150px",
|
|
15531
|
+
fontSize: "10px"
|
|
15532
|
+
}, "$", itemPrice)))), React__default.createElement(ButtonContainer$1, null, React__default.createElement(Button, {
|
|
15533
|
+
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
15534
|
+
onClick: function onClick() {
|
|
15535
|
+
return onHandleClick(item.name);
|
|
15536
|
+
}
|
|
15537
|
+
}, "Buy")));
|
|
15538
|
+
};
|
|
15539
|
+
var MarketPlaceWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
15540
|
+
displayName: "MarketplaceRows__MarketPlaceWrapper",
|
|
15541
|
+
componentId: "sc-wmpr1o-0"
|
|
15542
|
+
})(["margin:auto;display:grid;grid-template-columns:35% 20% 20% 25%;&:hover{background-color:", ";}padding:0.5rem;p{font-size:0.8rem;}"], uiColors.darkGray);
|
|
15543
|
+
var ItemIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
15544
|
+
displayName: "MarketplaceRows__ItemIconContainer",
|
|
15545
|
+
componentId: "sc-wmpr1o-1"
|
|
15546
|
+
})(["display:flex;justify-content:flex-start;align-items:center;"]);
|
|
15547
|
+
var SpriteContainer = /*#__PURE__*/styled.div.withConfig({
|
|
15548
|
+
displayName: "MarketplaceRows__SpriteContainer",
|
|
15549
|
+
componentId: "sc-wmpr1o-2"
|
|
15550
|
+
})(["position:relative;top:-0.5rem;left:0.5rem;"]);
|
|
15551
|
+
var Item$1 = /*#__PURE__*/styled.span.withConfig({
|
|
15552
|
+
displayName: "MarketplaceRows__Item",
|
|
15553
|
+
componentId: "sc-wmpr1o-3"
|
|
15554
|
+
})(["color:white;text-align:center;z-index:1;width:100%;"]);
|
|
15555
|
+
var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
|
|
15556
|
+
displayName: "MarketplaceRows__TextOverlay",
|
|
15557
|
+
componentId: "sc-wmpr1o-4"
|
|
15558
|
+
})(["width:100%;position:relative;"]);
|
|
15559
|
+
var QuantityContainer = /*#__PURE__*/styled.div.withConfig({
|
|
15560
|
+
displayName: "MarketplaceRows__QuantityContainer",
|
|
15561
|
+
componentId: "sc-wmpr1o-5"
|
|
15562
|
+
})(["position:relative;display:flex;min-width:100px;justify-content:center;align-items:center;"]);
|
|
15563
|
+
var QuantityDisplay = /*#__PURE__*/styled.div.withConfig({
|
|
15564
|
+
displayName: "MarketplaceRows__QuantityDisplay",
|
|
15565
|
+
componentId: "sc-wmpr1o-6"
|
|
15566
|
+
})(["font-size:", ";"], uiFonts.size.small);
|
|
15567
|
+
var PriceValue = /*#__PURE__*/styled.div.withConfig({
|
|
15568
|
+
displayName: "MarketplaceRows__PriceValue",
|
|
15569
|
+
componentId: "sc-wmpr1o-7"
|
|
15570
|
+
})(["margin-left:40px;"]);
|
|
15571
|
+
var ButtonContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
15572
|
+
displayName: "MarketplaceRows__ButtonContainer",
|
|
15573
|
+
componentId: "sc-wmpr1o-8"
|
|
15574
|
+
})(["margin:auto;"]);
|
|
15575
|
+
|
|
15576
|
+
var Marketplace = function Marketplace(_ref) {
|
|
15577
|
+
var items = _ref.items,
|
|
15578
|
+
atlasIMG = _ref.atlasIMG,
|
|
15579
|
+
atlasJSON = _ref.atlasJSON,
|
|
15580
|
+
onClose = _ref.onClose,
|
|
15581
|
+
optionsType = _ref.optionsType,
|
|
15582
|
+
optionsRarity = _ref.optionsRarity,
|
|
15583
|
+
optionsPrice = _ref.optionsPrice,
|
|
15584
|
+
onChangeType = _ref.onChangeType,
|
|
15585
|
+
onChangeRarity = _ref.onChangeRarity,
|
|
15586
|
+
onChangeOrder = _ref.onChangeOrder,
|
|
15587
|
+
onChangeNameInput = _ref.onChangeNameInput,
|
|
15588
|
+
scale = _ref.scale,
|
|
15589
|
+
equipmentSet = _ref.equipmentSet,
|
|
15590
|
+
onHandleClick = _ref.onHandleClick;
|
|
15591
|
+
return React__default.createElement(DraggableContainer, {
|
|
15592
|
+
type: exports.RPGUIContainerTypes.Framed,
|
|
15593
|
+
onCloseButton: function onCloseButton() {
|
|
15594
|
+
if (onClose) onClose();
|
|
15595
|
+
},
|
|
15596
|
+
width: "800px",
|
|
15597
|
+
cancelDrag: "#MarketContainer",
|
|
15598
|
+
scale: scale
|
|
15599
|
+
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(InputWrapper, null, React__default.createElement("p", null, " Search By Name"), React__default.createElement(Input, {
|
|
15600
|
+
onChange: onChangeNameInput,
|
|
15601
|
+
placeholder: 'Search...'
|
|
15602
|
+
})), React__default.createElement(WrapperContainer, null, React__default.createElement(StyledDropdown, {
|
|
15603
|
+
options: optionsType,
|
|
15604
|
+
onChange: onChangeType,
|
|
15605
|
+
width: '220px'
|
|
15606
|
+
}), React__default.createElement(StyledDropdown, {
|
|
15607
|
+
options: optionsRarity,
|
|
15608
|
+
onChange: onChangeRarity,
|
|
15609
|
+
width: '220px'
|
|
15610
|
+
}), React__default.createElement(StyledDropdown, {
|
|
15611
|
+
options: optionsPrice,
|
|
15612
|
+
onChange: onChangeOrder,
|
|
15613
|
+
width: '220px'
|
|
15614
|
+
})), React__default.createElement(ItemComponentScrollWrapper, {
|
|
15615
|
+
id: "MarketContainer"
|
|
15616
|
+
}, items == null ? void 0 : items.map(function (item, index) {
|
|
15617
|
+
return React__default.createElement(MarketplaceRows, {
|
|
15618
|
+
key: item.key + "_" + index,
|
|
15619
|
+
atlasIMG: atlasIMG,
|
|
15620
|
+
atlasJSON: atlasJSON,
|
|
15621
|
+
item: item,
|
|
15622
|
+
itemPrice: 10,
|
|
15623
|
+
equipmentSet: equipmentSet,
|
|
15624
|
+
onHandleClick: onHandleClick
|
|
15625
|
+
});
|
|
15626
|
+
}))));
|
|
15627
|
+
};
|
|
15628
|
+
var InputWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
15629
|
+
displayName: "Marketplace__InputWrapper",
|
|
15630
|
+
componentId: "sc-h904b1-0"
|
|
15631
|
+
})(["width:95%;display:flex;justify-content:flex-start;align-items:center;margin:auto;margin-bottom:10px;p{width:auto;margin-right:20px;}input{width:68%;height:10px;}"]);
|
|
15632
|
+
var WrapperContainer = /*#__PURE__*/styled.div.withConfig({
|
|
15633
|
+
displayName: "Marketplace__WrapperContainer",
|
|
15634
|
+
componentId: "sc-h904b1-1"
|
|
15635
|
+
})(["display:grid;grid-template-columns:30% 30% 30%;justify-content:space-between;width:90%;margin-left:10px;.rpgui-content .rpgui-dropdown-imp-header{padding:0px 10px 0 !important;}"]);
|
|
15636
|
+
var ItemComponentScrollWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
15637
|
+
displayName: "Marketplace__ItemComponentScrollWrapper",
|
|
15638
|
+
componentId: "sc-h904b1-2"
|
|
15639
|
+
})(["overflow-y:scroll;height:390px;width:100%;margin-top:1rem;"]);
|
|
15640
|
+
var StyledDropdown = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
15641
|
+
displayName: "Marketplace__StyledDropdown",
|
|
15642
|
+
componentId: "sc-h904b1-3"
|
|
15643
|
+
})(["margin:3px !important;width:170px !important;"]);
|
|
15644
|
+
|
|
15475
15645
|
var ProgressBar = function ProgressBar(_ref) {
|
|
15476
15646
|
var max = _ref.max,
|
|
15477
15647
|
value = _ref.value,
|
|
@@ -15496,7 +15666,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
15496
15666
|
percentageWidth: percentageWidth,
|
|
15497
15667
|
minWidth: minWidth,
|
|
15498
15668
|
style: style
|
|
15499
|
-
}, displayText && React__default.createElement(TextOverlay$
|
|
15669
|
+
}, displayText && React__default.createElement(TextOverlay$2, null, React__default.createElement(ProgressBarText, null, value, "/", max)), React__default.createElement("div", {
|
|
15500
15670
|
className: " rpgui-progress-track"
|
|
15501
15671
|
}, React__default.createElement("div", {
|
|
15502
15672
|
className: "rpgui-progress-fill " + color + " ",
|
|
@@ -15514,7 +15684,7 @@ var ProgressBarText = /*#__PURE__*/styled.span.withConfig({
|
|
|
15514
15684
|
displayName: "ProgressBar__ProgressBarText",
|
|
15515
15685
|
componentId: "sc-qa6fzh-0"
|
|
15516
15686
|
})(["font-size:", " !important;color:white;text-align:center;z-index:1;position:absolute;left:50%;transform:translateX(-50%);top:12px;"], uiFonts.size.small);
|
|
15517
|
-
var TextOverlay$
|
|
15687
|
+
var TextOverlay$2 = /*#__PURE__*/styled.div.withConfig({
|
|
15518
15688
|
displayName: "ProgressBar__TextOverlay",
|
|
15519
15689
|
componentId: "sc-qa6fzh-1"
|
|
15520
15690
|
})(["width:100%;position:relative;"]);
|
|
@@ -15892,7 +16062,7 @@ var SkillProgressBar = function SkillProgressBar(_ref) {
|
|
|
15892
16062
|
}
|
|
15893
16063
|
var nextLevelSPWillbe = skillPoints + skillPointsToNextLevel;
|
|
15894
16064
|
var ratio = skillPoints / nextLevelSPWillbe * 100;
|
|
15895
|
-
return React__default.createElement(React__default.Fragment, null, React__default.createElement(ProgressTitle, null, React__default.createElement(TitleName, null, skillName), React__default.createElement(ValueDisplay, null, "lv ", level)), React__default.createElement(ProgressBody, null, React__default.createElement(ProgressIconContainer, null, atlasIMG && atlasJSON ? React__default.createElement(SpriteContainer, null, React__default.createElement(ErrorBoundary, null, React__default.createElement(SpriteFromAtlas, {
|
|
16065
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(ProgressTitle, null, React__default.createElement(TitleName, null, skillName), React__default.createElement(ValueDisplay, null, "lv ", level)), React__default.createElement(ProgressBody, null, React__default.createElement(ProgressIconContainer, null, atlasIMG && atlasJSON ? React__default.createElement(SpriteContainer$1, null, React__default.createElement(ErrorBoundary, null, React__default.createElement(SpriteFromAtlas, {
|
|
15896
16066
|
atlasIMG: atlasIMG,
|
|
15897
16067
|
atlasJSON: atlasJSON,
|
|
15898
16068
|
spriteKey: texturePath,
|
|
@@ -15908,7 +16078,7 @@ var ProgressBarContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
15908
16078
|
displayName: "SkillProgressBar__ProgressBarContainer",
|
|
15909
16079
|
componentId: "sc-5vuroc-0"
|
|
15910
16080
|
})(["position:relative;top:8px;width:100%;height:auto;"]);
|
|
15911
|
-
var SpriteContainer = /*#__PURE__*/styled.div.withConfig({
|
|
16081
|
+
var SpriteContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
15912
16082
|
displayName: "SkillProgressBar__SpriteContainer",
|
|
15913
16083
|
componentId: "sc-5vuroc-1"
|
|
15914
16084
|
})(["position:relative;top:-3px;left:0;"]);
|
|
@@ -16080,13 +16250,13 @@ var Spell = function Spell(_ref) {
|
|
|
16080
16250
|
manaCost = _ref.manaCost,
|
|
16081
16251
|
charMana = _ref.charMana,
|
|
16082
16252
|
charMagicLevel = _ref.charMagicLevel,
|
|
16083
|
-
|
|
16253
|
+
onPointerUp = _ref.onPointerUp,
|
|
16084
16254
|
isSettingShortcut = _ref.isSettingShortcut,
|
|
16085
16255
|
minMagicLevelRequired = _ref.minMagicLevelRequired;
|
|
16086
16256
|
var disabled = isSettingShortcut ? charMagicLevel < minMagicLevelRequired : manaCost > charMana || charMagicLevel < minMagicLevelRequired;
|
|
16087
16257
|
return React__default.createElement(Container$m, {
|
|
16088
16258
|
disabled: disabled,
|
|
16089
|
-
|
|
16259
|
+
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
16090
16260
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
16091
16261
|
className: "spell"
|
|
16092
16262
|
}, disabled && React__default.createElement(Overlay, null, charMagicLevel < minMagicLevelRequired ? 'Low magic level' : manaCost > charMana && 'No mana'), React__default.createElement(SpellImage, null, magicWords.split(' ').map(function (word) {
|
|
@@ -16206,7 +16376,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
16206
16376
|
}, React__default.createElement(Spell, Object.assign({
|
|
16207
16377
|
charMana: mana,
|
|
16208
16378
|
charMagicLevel: magicLevel,
|
|
16209
|
-
|
|
16379
|
+
onPointerUp: settingShortcutIndex !== -1 ? setShortcut : onSpellClick,
|
|
16210
16380
|
spellKey: spell.key,
|
|
16211
16381
|
isSettingShortcut: settingShortcutIndex !== -1
|
|
16212
16382
|
}, spell)));
|
|
@@ -16303,7 +16473,7 @@ var TradingItemRow = function TradingItemRow(_ref) {
|
|
|
16303
16473
|
}
|
|
16304
16474
|
onQuantityChange(traderItem, Math.min((_traderItem$stackQty = traderItem.stackQty) != null ? _traderItem$stackQty : 999, selectedQty + qty));
|
|
16305
16475
|
};
|
|
16306
|
-
return React__default.createElement(ItemWrapper, null, React__default.createElement(ItemIconContainer, null, React__default.createElement(SpriteContainer$
|
|
16476
|
+
return React__default.createElement(ItemWrapper, null, React__default.createElement(ItemIconContainer$1, null, React__default.createElement(SpriteContainer$2, null, React__default.createElement(ItemInfoWrapper, {
|
|
16307
16477
|
atlasIMG: atlasIMG,
|
|
16308
16478
|
atlasJSON: atlasJSON,
|
|
16309
16479
|
equipmentSet: equipmentSet,
|
|
@@ -16322,7 +16492,7 @@ var TradingItemRow = function TradingItemRow(_ref) {
|
|
|
16322
16492
|
})))), React__default.createElement(ItemNameContainer, null, React__default.createElement(NameValue, null, React__default.createElement("p", null, React__default.createElement(Ellipsis, {
|
|
16323
16493
|
maxLines: 1,
|
|
16324
16494
|
maxWidth: "250px"
|
|
16325
|
-
}, capitalize(traderItem.name))), React__default.createElement("p", null, "$", traderItem.price))), React__default.createElement(QuantityContainer, null, React__default.createElement(SelectArrow, {
|
|
16495
|
+
}, capitalize(traderItem.name))), React__default.createElement("p", null, "$", traderItem.price))), React__default.createElement(QuantityContainer$1, null, React__default.createElement(SelectArrow, {
|
|
16326
16496
|
size: 32,
|
|
16327
16497
|
className: "arrow-selector",
|
|
16328
16498
|
direction: "left",
|
|
@@ -16332,7 +16502,7 @@ var TradingItemRow = function TradingItemRow(_ref) {
|
|
|
16332
16502
|
className: "arrow-selector",
|
|
16333
16503
|
direction: "left",
|
|
16334
16504
|
onPointerDown: onLeftClick
|
|
16335
|
-
}), React__default.createElement(QuantityDisplay, null, React__default.createElement(TextOverlay$
|
|
16505
|
+
}), React__default.createElement(QuantityDisplay$1, null, React__default.createElement(TextOverlay$3, null, React__default.createElement(Item$2, null, selectedQty))), React__default.createElement(StyledArrow, {
|
|
16336
16506
|
size: 32,
|
|
16337
16507
|
className: "arrow-selector",
|
|
16338
16508
|
direction: "right",
|
|
@@ -16356,11 +16526,11 @@ var ItemNameContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
16356
16526
|
displayName: "TradingItemRow__ItemNameContainer",
|
|
16357
16527
|
componentId: "sc-mja0b5-2"
|
|
16358
16528
|
})(["flex:60%;"]);
|
|
16359
|
-
var ItemIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
16529
|
+
var ItemIconContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
16360
16530
|
displayName: "TradingItemRow__ItemIconContainer",
|
|
16361
16531
|
componentId: "sc-mja0b5-3"
|
|
16362
16532
|
})(["display:flex;justify-content:flex-start;align-items:center;flex:0 0 58px;"]);
|
|
16363
|
-
var SpriteContainer$
|
|
16533
|
+
var SpriteContainer$2 = /*#__PURE__*/styled.div.withConfig({
|
|
16364
16534
|
displayName: "TradingItemRow__SpriteContainer",
|
|
16365
16535
|
componentId: "sc-mja0b5-4"
|
|
16366
16536
|
})(["position:relative;top:-0.5rem;left:0.5rem;"]);
|
|
@@ -16368,19 +16538,19 @@ var NameValue = /*#__PURE__*/styled.div.withConfig({
|
|
|
16368
16538
|
displayName: "TradingItemRow__NameValue",
|
|
16369
16539
|
componentId: "sc-mja0b5-5"
|
|
16370
16540
|
})(["p{font-size:0.75rem;margin:0;}"]);
|
|
16371
|
-
var Item$
|
|
16541
|
+
var Item$2 = /*#__PURE__*/styled.span.withConfig({
|
|
16372
16542
|
displayName: "TradingItemRow__Item",
|
|
16373
16543
|
componentId: "sc-mja0b5-6"
|
|
16374
16544
|
})(["color:white;text-align:center;z-index:1;width:100%;"]);
|
|
16375
|
-
var TextOverlay$
|
|
16545
|
+
var TextOverlay$3 = /*#__PURE__*/styled.div.withConfig({
|
|
16376
16546
|
displayName: "TradingItemRow__TextOverlay",
|
|
16377
16547
|
componentId: "sc-mja0b5-7"
|
|
16378
16548
|
})(["width:100%;position:relative;"]);
|
|
16379
|
-
var QuantityContainer = /*#__PURE__*/styled.div.withConfig({
|
|
16549
|
+
var QuantityContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
16380
16550
|
displayName: "TradingItemRow__QuantityContainer",
|
|
16381
16551
|
componentId: "sc-mja0b5-8"
|
|
16382
16552
|
})(["position:relative;display:flex;min-width:100px;width:40%;justify-content:center;align-items:center;flex:40%;"]);
|
|
16383
|
-
var QuantityDisplay = /*#__PURE__*/styled.div.withConfig({
|
|
16553
|
+
var QuantityDisplay$1 = /*#__PURE__*/styled.div.withConfig({
|
|
16384
16554
|
displayName: "TradingItemRow__QuantityDisplay",
|
|
16385
16555
|
componentId: "sc-mja0b5-9"
|
|
16386
16556
|
})(["font-size:", ";"], uiFonts.size.small);
|
|
@@ -16549,6 +16719,8 @@ exports.ItemContainer = ItemContainer$1;
|
|
|
16549
16719
|
exports.ItemSelector = ItemSelector;
|
|
16550
16720
|
exports.ItemSlot = ItemSlot;
|
|
16551
16721
|
exports.ListMenu = ListMenu;
|
|
16722
|
+
exports.Marketplace = Marketplace;
|
|
16723
|
+
exports.MarketplaceRows = MarketplaceRows;
|
|
16552
16724
|
exports.NPCDialog = NPCDialog;
|
|
16553
16725
|
exports.NPCMultiDialog = NPCMultiDialog;
|
|
16554
16726
|
exports.ProgressBar = ProgressBar;
|