@rpg-engine/long-bow 0.2.29 → 0.2.33
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/Arrow/SelectArrow.d.ts +8 -0
- package/dist/components/TradingMenu/TradingItemRow.d.ts +9 -0
- package/dist/components/TradingMenu/TradingMenu.d.ts +12 -0
- package/dist/components/shared/Ellipsis.d.ts +3 -1
- package/dist/index.d.ts +3 -3
- package/dist/long-bow.cjs.development.js +544 -499
- 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 +544 -499
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/Arrow.stories.d.ts +5 -0
- package/dist/stories/ItemTradingComponent.stories.d.ts +1 -1
- package/dist/stories/{TrandingMenu.stories.d.ts → TradingMenu.stories.d.ts} +1 -1
- package/package.json +2 -2
- package/src/components/Arrow/SelectArrow.tsx +65 -0
- package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow01-left-clicked.png +0 -0
- package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow01-left.png +0 -0
- package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow01-right-clicked.png +0 -0
- package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow01-right.png +0 -0
- package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow02-left-clicked.png +0 -0
- package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow02-left.png +0 -0
- package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow02-right-clicked.png +0 -0
- package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow02-right.png +0 -0
- package/src/components/NPCDialog/.DS_Store +0 -0
- package/src/components/NPCDialog/img/.DS_Store +0 -0
- package/src/components/PropertySelect/PropertySelect.tsx +12 -34
- package/src/components/QuestInfo/QuestInfo.tsx +8 -34
- package/src/components/TradingMenu/TradingItemRow.tsx +172 -0
- package/src/components/TradingMenu/{TrandingMenu.tsx → TradingMenu.tsx} +22 -24
- package/src/components/TradingMenu/items.mock.ts +19 -18
- package/src/components/shared/Ellipsis.tsx +25 -6
- package/src/index.tsx +3 -3
- package/src/stories/Arrow.stories.tsx +26 -0
- package/src/stories/ItemTradingComponent.stories.tsx +6 -6
- package/src/stories/{TrandingMenu.stories.tsx → TradingMenu.stories.tsx} +5 -5
- package/dist/components/TradingMenu/TrandingMenu.d.ts +0 -12
- package/dist/components/TradingMenu/itemComponent.d.ts +0 -9
- package/src/components/TradingMenu/itemComponent.tsx +0 -158
package/dist/long-bow.esm.js
CHANGED
|
@@ -9,6 +9,7 @@ import 'rpgui/rpgui.min.css';
|
|
|
9
9
|
import 'rpgui/rpgui.min.js';
|
|
10
10
|
import { observer } from 'mobx-react-lite';
|
|
11
11
|
import _ from 'lodash-es';
|
|
12
|
+
import capitalize from 'lodash-es/capitalize';
|
|
12
13
|
|
|
13
14
|
function _extends() {
|
|
14
15
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -27282,25 +27283,74 @@ var ErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
27282
27283
|
return ErrorBoundary;
|
|
27283
27284
|
}(Component);
|
|
27284
27285
|
|
|
27286
|
+
var img$2 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAASRJREFUWIXtl7EKwjAQhn8llg4dOig4uApu+gaib+Fj+CL6MO6Kk6N1ExRdHDJ06NChFEEnL6kmGkE5wf7TJVzbn+96uRb4d1VcE+tB62VO4HkUp3l+MeWEvk/P3Md7VF0NfEvsBsT9hg21C940zynuNZvG+0RS6tdW2AmwGxBAEXvo+xQnWUa4XPAOOmdtpeLF9qHSJHYC7AYEYMfuhtosHXskJcWB59FBFOMHCLAbEIAduwvqd6V3E/ADBNgN3LqA3kz9rJ6MQkqcre2HyTvSZ0rZBYDqAtrot2tUjuE0MY7d+Tg0bT+R6qxyHN9LAECcnmhjuSt8EVE5ui3VBbbS6LKVKZLFNTsBdgMf/S/Qy7Q5nY1lajfUOF4dD/wE2A2UYtcVzKJVOti5A44AAAAASUVORK5CYII=';
|
|
27287
|
+
|
|
27288
|
+
var img$3 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAASZJREFUWIVjYBjpgJFYhSI8MgTVGBoJwNnnz334j02Nk5MY3M5Vm84xMBHrAFqBAXcARhTgCmpighcZHDvhhFXcymIfnP3myxPGAQ+BAXcAIwMDarA7OYnB2fv2vcIa1LiC98fKc1jFOcKN4OzRKEAHLAwMuIOd1KDGBZCD3dBIAJ7zdh96MvAhMOAOYGFgwB3spAY1MeD8uQ8o/AEPgQF3ACwXwFOmlcU+eHTsKxTApocioC/DAmfvvTEIQmDAHYBRF9irssLZB2//xloXFDqIEDTY1/APVnGnfkQuGK0LGBigueDNlydwgYO3UVpE8NwhI4CImv4Dbwi2iBgYCEcTA8MgCIEBdwBV+wXI0fTkA/YcpCrKBrfz+P17Ax8CA+6AUTDgAACD+FSXdO/L2QAAAABJRU5ErkJggg==';
|
|
27289
|
+
|
|
27290
|
+
var img$4 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAARlJREFUWIXtl78KwjAQxr9IFIcODh0cuigKburoJLr7bD6S+ga6CV07CHZw6FCqoFPzp1w0g3KK/abjeinH78s1DfDvEgAwCAcqccnzO1UYtFqijLOiePniNEu8Gmh4VX1Q7A1IwMY+6XbJwv3pRFpjyrQJQUTWVK1hJ8DegHz2cDG6GXGo4s2RXuayqdNua2ugrUmzhJ8AewMSsHevjVFPhG2Hjm29niDTjjT7AgLsDUjA79vuIx9rKpMi2AmwN1BOgUq8y47VVNux3qYqrqegKgEAYRCRx7G5q02kLi3XFzI/HzYV9l18Vfn6LACI49iF3YXX1DiSCvUh0Wur2E2xE2BvQADArNdXifhckH81Lrwu1feCWj+jBx1LX0kx8GexAAAAAElFTkSuQmCC';
|
|
27291
|
+
|
|
27292
|
+
var img$5 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAS5JREFUWIXtl7Fqw0AMhv8LLmTI4KFk8pJAtkKJpzRDCoasHZvnyJP0OZqx3Y90KZ3OdM7qKfHgIUNpAu1U+TA654YGUXr/JGRx/vmEdDbw36UA4P4upYTW2y+ucJzG6ifOTXXy4HJfeBnoeFWdUeIGFABc9hLC/vqWsYXTiT55mE+bmq0RJyBuIGp7+PFoKNbLmOLuIuXKMZ1odoKyrE+t0VYny30hT0DcgAKA+eyKErmpCKON3UctraHYbsfqycgTEDcQAX673Uf21Niyl1tjUpQ4AXEDEQBcJ/U+ei+Ov/4S9xSERcRcx67l85y3XhsAgId1yeZvRxeE/WVzoHy4CwDmOnahduG1lcQ16qKqUTex2xInIG5AAcDNYEiJze6T/apx4XUp/BcE/Rl9A77uW6caXAGtAAAAAElFTkSuQmCC';
|
|
27293
|
+
|
|
27294
|
+
var _excluded$1 = ["direction", "size", "onClick"];
|
|
27295
|
+
var SelectArrow = function SelectArrow(_ref) {
|
|
27296
|
+
var _ref$direction = _ref.direction,
|
|
27297
|
+
direction = _ref$direction === void 0 ? 'left' : _ref$direction,
|
|
27298
|
+
size = _ref.size,
|
|
27299
|
+
_onClick = _ref.onClick,
|
|
27300
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
27301
|
+
return React.createElement(React.Fragment, null, direction === 'left' ? React.createElement(LeftArrow, Object.assign({
|
|
27302
|
+
size: size,
|
|
27303
|
+
onClick: function onClick() {
|
|
27304
|
+
return _onClick();
|
|
27305
|
+
}
|
|
27306
|
+
}, props)) : React.createElement(RightArrow, Object.assign({
|
|
27307
|
+
size: size,
|
|
27308
|
+
onClick: function onClick() {
|
|
27309
|
+
return _onClick();
|
|
27310
|
+
}
|
|
27311
|
+
}, props)));
|
|
27312
|
+
};
|
|
27313
|
+
var LeftArrow = /*#__PURE__*/styled.span.withConfig({
|
|
27314
|
+
displayName: "SelectArrow__LeftArrow",
|
|
27315
|
+
componentId: "sc-1h7cpoe-0"
|
|
27316
|
+
})(["background-image:url(", ");background-size:100% 100%;left:0;position:absolute;width:", "px;height:", "px;:active{background-image:url(", ");}z-index:2;"], img$3, function (props) {
|
|
27317
|
+
return props.size || 40;
|
|
27318
|
+
}, function (props) {
|
|
27319
|
+
return props.size || 42;
|
|
27320
|
+
}, img$2);
|
|
27321
|
+
var RightArrow = /*#__PURE__*/styled.span.withConfig({
|
|
27322
|
+
displayName: "SelectArrow__RightArrow",
|
|
27323
|
+
componentId: "sc-1h7cpoe-1"
|
|
27324
|
+
})(["background-image:url(", ");right:0;position:absolute;width:", "px;height:", "px;background-size:100% 100%;:active{background-image:url(", ");}z-index:2;"], img$5, function (props) {
|
|
27325
|
+
return props.size || 40;
|
|
27326
|
+
}, function (props) {
|
|
27327
|
+
return props.size || 42;
|
|
27328
|
+
}, img$4);
|
|
27329
|
+
|
|
27285
27330
|
var Ellipsis = function Ellipsis(_ref) {
|
|
27286
27331
|
var children = _ref.children,
|
|
27287
|
-
maxLines = _ref.maxLines
|
|
27288
|
-
|
|
27332
|
+
maxLines = _ref.maxLines,
|
|
27333
|
+
maxWidth = _ref.maxWidth,
|
|
27334
|
+
fontSize = _ref.fontSize;
|
|
27335
|
+
return React.createElement(Container$1, {
|
|
27336
|
+
maxWidth: maxWidth,
|
|
27337
|
+
fontSize: fontSize
|
|
27338
|
+
}, React.createElement("p", {
|
|
27289
27339
|
className: "ellipsis-" + maxLines + "-lines"
|
|
27290
27340
|
}, children));
|
|
27291
27341
|
};
|
|
27292
27342
|
var Container$1 = /*#__PURE__*/styled.div.withConfig({
|
|
27293
27343
|
displayName: "Ellipsis__Container",
|
|
27294
27344
|
componentId: "sc-ysrlju-0"
|
|
27295
|
-
})([".ellipsis-1-lines{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}.ellipsis-2-lines{display:-webkit-box;max-width:
|
|
27296
|
-
|
|
27297
|
-
|
|
27298
|
-
|
|
27299
|
-
|
|
27300
|
-
|
|
27301
|
-
|
|
27302
|
-
|
|
27303
|
-
|
|
27345
|
+
})(["p{font-size:", ";}.ellipsis-1-lines{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:", "px;}.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) {
|
|
27346
|
+
return props.fontSize || '1rem';
|
|
27347
|
+
}, function (props) {
|
|
27348
|
+
return props.maxWidth;
|
|
27349
|
+
}, function (props) {
|
|
27350
|
+
return props.maxWidth;
|
|
27351
|
+
}, function (props) {
|
|
27352
|
+
return props.maxWidth;
|
|
27353
|
+
});
|
|
27304
27354
|
|
|
27305
27355
|
var PropertySelect = function PropertySelect(_ref) {
|
|
27306
27356
|
var availableProperties = _ref.availableProperties,
|
|
@@ -27333,13 +27383,16 @@ var PropertySelect = function PropertySelect(_ref) {
|
|
|
27333
27383
|
return '';
|
|
27334
27384
|
};
|
|
27335
27385
|
return React.createElement(Container$2, null, React.createElement(TextOverlay, null, React.createElement(Item, null, React.createElement(Ellipsis, {
|
|
27336
|
-
maxLines: 1
|
|
27386
|
+
maxLines: 1,
|
|
27387
|
+
maxWidth: 200
|
|
27337
27388
|
}, getCurrentSelectionName()))), React.createElement("div", {
|
|
27338
27389
|
className: "rpgui-progress-track"
|
|
27339
|
-
}), React.createElement(
|
|
27390
|
+
}), React.createElement(SelectArrow, {
|
|
27391
|
+
direction: "left",
|
|
27340
27392
|
onClick: onLeftClick,
|
|
27341
27393
|
onTouchStart: onLeftClick
|
|
27342
|
-
}), React.createElement(
|
|
27394
|
+
}), React.createElement(SelectArrow, {
|
|
27395
|
+
direction: "right",
|
|
27343
27396
|
onClick: onRightClick,
|
|
27344
27397
|
onTouchStart: onRightClick
|
|
27345
27398
|
}));
|
|
@@ -27356,14 +27409,6 @@ var Container$2 = /*#__PURE__*/styled.div.withConfig({
|
|
|
27356
27409
|
displayName: "PropertySelect__Container",
|
|
27357
27410
|
componentId: "sc-12uqx6s-2"
|
|
27358
27411
|
})(["position:relative;display:flex;flex-direction:column;justify-content:start;align-items:flex-start;min-width:100px;width:40%;"]);
|
|
27359
|
-
var LeftArrow = /*#__PURE__*/styled.div.withConfig({
|
|
27360
|
-
displayName: "PropertySelect__LeftArrow",
|
|
27361
|
-
componentId: "sc-12uqx6s-3"
|
|
27362
|
-
})(["background-image:url(", ");background-size:100% 100%;left:0;position:absolute;width:40px;height:42px;:active{background-image:url(", ");}z-index:2;"], img$3, img$2);
|
|
27363
|
-
var RightArrow = /*#__PURE__*/styled.div.withConfig({
|
|
27364
|
-
displayName: "PropertySelect__RightArrow",
|
|
27365
|
-
componentId: "sc-12uqx6s-4"
|
|
27366
|
-
})(["background-image:url(", ");right:0;position:absolute;width:40px;background-size:100% 100%;height:42px;:active{background-image:url(", ");}z-index:2;"], img$5, img$4);
|
|
27367
27412
|
|
|
27368
27413
|
var CharacterSelection = function CharacterSelection(_ref) {
|
|
27369
27414
|
var availableCharacters = _ref.availableCharacters,
|
|
@@ -28165,121 +28210,6 @@ var EquipmentColumn = /*#__PURE__*/styled.div.withConfig({
|
|
|
28165
28210
|
componentId: "sc-1wuddg2-1"
|
|
28166
28211
|
})(["display:flex;justify-content:center;flex-wrap:wrap;flex-direction:column;"]);
|
|
28167
28212
|
|
|
28168
|
-
var SlotsContainer = function SlotsContainer(_ref) {
|
|
28169
|
-
var children = _ref.children,
|
|
28170
|
-
title = _ref.title,
|
|
28171
|
-
onClose = _ref.onClose,
|
|
28172
|
-
_onPositionChange = _ref.onPositionChange,
|
|
28173
|
-
onOutsideClick = _ref.onOutsideClick;
|
|
28174
|
-
return React.createElement(DraggableContainer, {
|
|
28175
|
-
title: title,
|
|
28176
|
-
type: RPGUIContainerTypes.Framed,
|
|
28177
|
-
onCloseButton: function onCloseButton() {
|
|
28178
|
-
if (onClose) {
|
|
28179
|
-
onClose();
|
|
28180
|
-
}
|
|
28181
|
-
},
|
|
28182
|
-
width: "330px",
|
|
28183
|
-
cancelDrag: ".item-container-body",
|
|
28184
|
-
onPositionChange: function onPositionChange(_ref2) {
|
|
28185
|
-
var x = _ref2.x,
|
|
28186
|
-
y = _ref2.y;
|
|
28187
|
-
if (_onPositionChange) {
|
|
28188
|
-
_onPositionChange({
|
|
28189
|
-
x: x,
|
|
28190
|
-
y: y
|
|
28191
|
-
});
|
|
28192
|
-
}
|
|
28193
|
-
},
|
|
28194
|
-
onOutsideClick: onOutsideClick
|
|
28195
|
-
}, children);
|
|
28196
|
-
};
|
|
28197
|
-
|
|
28198
|
-
var ItemContainer = function ItemContainer(_ref) {
|
|
28199
|
-
var itemContainer = _ref.itemContainer,
|
|
28200
|
-
onClose = _ref.onClose,
|
|
28201
|
-
_onMouseOver = _ref.onMouseOver,
|
|
28202
|
-
_onSelected = _ref.onSelected,
|
|
28203
|
-
onItemClick = _ref.onItemClick,
|
|
28204
|
-
type = _ref.type,
|
|
28205
|
-
atlasJSON = _ref.atlasJSON,
|
|
28206
|
-
atlasIMG = _ref.atlasIMG;
|
|
28207
|
-
var onRenderSlots = function onRenderSlots() {
|
|
28208
|
-
var slots = [];
|
|
28209
|
-
for (var i = 0; i < itemContainer.slotQty; i++) {
|
|
28210
|
-
var _itemContainer$slots;
|
|
28211
|
-
slots.push(React.createElement(ItemSlot, {
|
|
28212
|
-
key: i,
|
|
28213
|
-
slotIndex: i,
|
|
28214
|
-
item: ((_itemContainer$slots = itemContainer.slots) == null ? void 0 : _itemContainer$slots[i]) || null,
|
|
28215
|
-
itemContainerType: type,
|
|
28216
|
-
onMouseOver: function onMouseOver(event, slotIndex, item) {
|
|
28217
|
-
if (_onMouseOver) _onMouseOver(event, slotIndex, item);
|
|
28218
|
-
},
|
|
28219
|
-
onClick: function onClick(ItemType, ContainerType, item) {
|
|
28220
|
-
if (onItemClick) onItemClick(item, ItemType, ContainerType);
|
|
28221
|
-
},
|
|
28222
|
-
onSelected: function onSelected(optionId, item) {
|
|
28223
|
-
if (_onSelected) _onSelected(optionId, item);
|
|
28224
|
-
},
|
|
28225
|
-
atlasIMG: atlasIMG,
|
|
28226
|
-
atlasJSON: atlasJSON
|
|
28227
|
-
}));
|
|
28228
|
-
}
|
|
28229
|
-
return slots;
|
|
28230
|
-
};
|
|
28231
|
-
return React.createElement(SlotsContainer, {
|
|
28232
|
-
title: itemContainer.name || 'Container',
|
|
28233
|
-
onClose: onClose
|
|
28234
|
-
}, React.createElement(ItemsContainer, {
|
|
28235
|
-
className: "item-container-body"
|
|
28236
|
-
}, onRenderSlots()));
|
|
28237
|
-
};
|
|
28238
|
-
var ItemsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
28239
|
-
displayName: "ItemContainer__ItemsContainer",
|
|
28240
|
-
componentId: "sc-15y5p9l-0"
|
|
28241
|
-
})(["max-width:280px;display:flex;justify-content:center;flex-wrap:wrap;"]);
|
|
28242
|
-
|
|
28243
|
-
var ListMenu = function ListMenu(_ref) {
|
|
28244
|
-
var options = _ref.options,
|
|
28245
|
-
onSelected = _ref.onSelected,
|
|
28246
|
-
x = _ref.x,
|
|
28247
|
-
y = _ref.y,
|
|
28248
|
-
_ref$fontSize = _ref.fontSize,
|
|
28249
|
-
fontSize = _ref$fontSize === void 0 ? 0.8 : _ref$fontSize;
|
|
28250
|
-
return React.createElement(Container$a, {
|
|
28251
|
-
x: x,
|
|
28252
|
-
y: y,
|
|
28253
|
-
fontSize: fontSize
|
|
28254
|
-
}, React.createElement("ul", {
|
|
28255
|
-
className: "rpgui-list-imp",
|
|
28256
|
-
style: {
|
|
28257
|
-
overflow: 'hidden'
|
|
28258
|
-
}
|
|
28259
|
-
}, options.map(function (params, index) {
|
|
28260
|
-
return React.createElement(ListElement$1, {
|
|
28261
|
-
key: (params == null ? void 0 : params.id) || index,
|
|
28262
|
-
onClick: function onClick() {
|
|
28263
|
-
onSelected(params == null ? void 0 : params.id);
|
|
28264
|
-
}
|
|
28265
|
-
}, (params == null ? void 0 : params.text) || 'No text');
|
|
28266
|
-
})));
|
|
28267
|
-
};
|
|
28268
|
-
var Container$a = /*#__PURE__*/styled.div.withConfig({
|
|
28269
|
-
displayName: "ListMenu__Container",
|
|
28270
|
-
componentId: "sc-i9097t-0"
|
|
28271
|
-
})(["display:flex;flex-direction:column;width:100%;justify-content:start;align-items:flex-start;position:absolute;top:", "px;left:", "px;li{font-size:", "em;}"], function (props) {
|
|
28272
|
-
return props.y || 0;
|
|
28273
|
-
}, function (props) {
|
|
28274
|
-
return props.x || 0;
|
|
28275
|
-
}, function (props) {
|
|
28276
|
-
return props.fontSize;
|
|
28277
|
-
});
|
|
28278
|
-
var ListElement$1 = /*#__PURE__*/styled.li.withConfig({
|
|
28279
|
-
displayName: "ListMenu__ListElement",
|
|
28280
|
-
componentId: "sc-i9097t-1"
|
|
28281
|
-
})(["margin-right:0.5rem;"]);
|
|
28282
|
-
|
|
28283
28213
|
var img$6 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAP1BMVEUAAAA7FyVxQTsUEBPj5v////+5v/tCJDOOUlIiHBr1oJfptaO6dWr61rhzFy1bMTjoanMUNGQoXMQkn97+88DQ3IhAAAAAAXRSTlMAQObYZgAAAAFiS0dEBfhv6ccAAAAHdElNRQfmAw4VOBC7c5LYAAABM0lEQVQ4y3XRi5KDIAwFUAUkbrBgpP//rZsHVHQ009q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ljaw5nYW1tYT0wLjQ1NDU0NQAh+QQBFAAAACwAAAAAQAAgAAAD8Ai63P4wykmrvTjrzbv/YCiOlGCeaKqubMtGZiHPdG3feI6bjqD/wOBPwPAJj0ggcWFMOp+ypaI5M1it0KxNCqDKsAWDdhwt1q5fMPnJ9aJt17g4HafJ3/et+Tzn99V+aThqfTNtcHlhhIBVWG+BdDSHOmiPeHdij3aYhZONf46YkZGanzpSAV6KjaOIpqWtNwIBAAEDqqKKhZuJnHSwAgMBtqo5sGs5wcO3yM01ysTO0gXQzNPN1cXXUNnbyNna3kcmwrW3Lujp6ugD5bbn6/HyLe20Cu/t+fr7/P3+/wCF2VswrKDBgwgTKlzIsCCDBAA7';
|
|
@@ -28353,13 +28283,13 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
28353
28283
|
return document.removeEventListener('keydown', onHandleSpacePress);
|
|
28354
28284
|
};
|
|
28355
28285
|
}, [chunkIndex]);
|
|
28356
|
-
return React.createElement(Container$
|
|
28286
|
+
return React.createElement(Container$a, null, React.createElement(DynamicText, {
|
|
28357
28287
|
text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
|
|
28358
28288
|
onFinish: onEndStep,
|
|
28359
28289
|
onStart: onStartStep
|
|
28360
28290
|
}));
|
|
28361
28291
|
};
|
|
28362
|
-
var Container$
|
|
28292
|
+
var Container$a = /*#__PURE__*/styled.div.withConfig({
|
|
28363
28293
|
displayName: "NPCDialogText__Container",
|
|
28364
28294
|
componentId: "sc-1cxkdh9-0"
|
|
28365
28295
|
})([""]);
|
|
@@ -28504,7 +28434,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
28504
28434
|
return null;
|
|
28505
28435
|
});
|
|
28506
28436
|
};
|
|
28507
|
-
return React.createElement(Container$
|
|
28437
|
+
return React.createElement(Container$b, null, React.createElement(QuestionContainer, null, React.createElement(DynamicText, {
|
|
28508
28438
|
text: currentQuestion.text,
|
|
28509
28439
|
onStart: function onStart() {
|
|
28510
28440
|
return setCanShowAnswers(false);
|
|
@@ -28514,7 +28444,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
28514
28444
|
}
|
|
28515
28445
|
})), canShowAnswers && React.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
|
|
28516
28446
|
};
|
|
28517
|
-
var Container$
|
|
28447
|
+
var Container$b = /*#__PURE__*/styled.div.withConfig({
|
|
28518
28448
|
displayName: "QuestionDialog__Container",
|
|
28519
28449
|
componentId: "sc-bxc5u0-0"
|
|
28520
28450
|
})(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
|
|
@@ -28576,7 +28506,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
28576
28506
|
}
|
|
28577
28507
|
})), type === NPCDialogType.TextAndThumbnail && React.createElement(ThumbnailContainer, null, React.createElement(NPCThumbnail, {
|
|
28578
28508
|
src: imagePath || img$6
|
|
28579
|
-
}))) : React.createElement(React.Fragment, null, React.createElement(Container$
|
|
28509
|
+
}))) : React.createElement(React.Fragment, null, React.createElement(Container$c, null, React.createElement(TextContainer$1, {
|
|
28580
28510
|
flex: type === NPCDialogType.TextAndThumbnail ? '70%' : '100%'
|
|
28581
28511
|
}, React.createElement(NPCDialogText, {
|
|
28582
28512
|
onStartStep: function onStartStep() {
|
|
@@ -28598,7 +28528,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
28598
28528
|
src: img$7
|
|
28599
28529
|
})));
|
|
28600
28530
|
};
|
|
28601
|
-
var Container$
|
|
28531
|
+
var Container$c = /*#__PURE__*/styled.div.withConfig({
|
|
28602
28532
|
displayName: "NPCDialog__Container",
|
|
28603
28533
|
componentId: "sc-1b4aw74-0"
|
|
28604
28534
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -28625,102 +28555,387 @@ var PressSpaceIndicator = /*#__PURE__*/styled.img.withConfig({
|
|
|
28625
28555
|
return right;
|
|
28626
28556
|
});
|
|
28627
28557
|
|
|
28628
|
-
var
|
|
28629
|
-
|
|
28630
|
-
|
|
28631
|
-
|
|
28632
|
-
|
|
28633
|
-
|
|
28634
|
-
|
|
28635
|
-
|
|
28636
|
-
|
|
28637
|
-
|
|
28638
|
-
|
|
28639
|
-
|
|
28640
|
-
|
|
28641
|
-
|
|
28558
|
+
var ImgSide;
|
|
28559
|
+
(function (ImgSide) {
|
|
28560
|
+
ImgSide["right"] = "right";
|
|
28561
|
+
ImgSide["left"] = "left";
|
|
28562
|
+
})(ImgSide || (ImgSide = {}));
|
|
28563
|
+
var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
28564
|
+
var _textAndTypeArray$sli;
|
|
28565
|
+
var _onClose = _ref.onClose,
|
|
28566
|
+
textAndTypeArray = _ref.textAndTypeArray;
|
|
28567
|
+
var _useState = useState(false),
|
|
28568
|
+
showGoNextIndicator = _useState[0],
|
|
28569
|
+
setShowGoNextIndicator = _useState[1];
|
|
28570
|
+
var _useState2 = useState(0),
|
|
28571
|
+
slide = _useState2[0],
|
|
28572
|
+
setSlide = _useState2[1];
|
|
28573
|
+
var onHandleSpacePress = function onHandleSpacePress(event) {
|
|
28574
|
+
if (event.code === 'Space') {
|
|
28575
|
+
if (slide < (textAndTypeArray == null ? void 0 : textAndTypeArray.length) - 1) {
|
|
28576
|
+
setSlide(function (prev) {
|
|
28577
|
+
return prev + 1;
|
|
28578
|
+
});
|
|
28579
|
+
} else {
|
|
28580
|
+
// if there's no more text chunks, close the dialog
|
|
28581
|
+
_onClose();
|
|
28582
|
+
}
|
|
28642
28583
|
}
|
|
28643
|
-
return value * 100 / max;
|
|
28644
28584
|
};
|
|
28645
|
-
return React.createElement(Container$e, {
|
|
28646
|
-
className: "rpgui-progress",
|
|
28647
|
-
"data-value": calculatePercentageValue(max, value) / 100,
|
|
28648
|
-
"data-rpguitype": "progress",
|
|
28649
|
-
percentageWidth: percentageWidth,
|
|
28650
|
-
minWidth: minWidth,
|
|
28651
|
-
style: style
|
|
28652
|
-
}, displayText && React.createElement(TextOverlay$1, null, React.createElement(ProgressBarText, null, value, "/", max)), React.createElement("div", {
|
|
28653
|
-
className: " rpgui-progress-track"
|
|
28654
|
-
}, React.createElement("div", {
|
|
28655
|
-
className: "rpgui-progress-fill " + color + " ",
|
|
28656
|
-
style: {
|
|
28657
|
-
left: '0px',
|
|
28658
|
-
width: calculatePercentageValue(max, value) + '%'
|
|
28659
|
-
}
|
|
28660
|
-
})), React.createElement("div", {
|
|
28661
|
-
className: " rpgui-progress-left-edge"
|
|
28662
|
-
}), React.createElement("div", {
|
|
28663
|
-
className: " rpgui-progress-right-edge"
|
|
28664
|
-
}));
|
|
28665
|
-
};
|
|
28666
|
-
var ProgressBarText = /*#__PURE__*/styled.span.withConfig({
|
|
28667
|
-
displayName: "ProgressBar__ProgressBarText",
|
|
28668
|
-
componentId: "sc-qa6fzh-0"
|
|
28669
|
-
})(["font-size:1rem;color:white;text-align:center;z-index:1;position:absolute;left:50%;transform:translateX(-50%);top:12px;"]);
|
|
28670
|
-
var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
|
|
28671
|
-
displayName: "ProgressBar__TextOverlay",
|
|
28672
|
-
componentId: "sc-qa6fzh-1"
|
|
28673
|
-
})(["width:100%;position:relative;"]);
|
|
28674
|
-
var Container$e = /*#__PURE__*/styled.div.withConfig({
|
|
28675
|
-
displayName: "ProgressBar__Container",
|
|
28676
|
-
componentId: "sc-qa6fzh-2"
|
|
28677
|
-
})(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", ""], function (props) {
|
|
28678
|
-
return props.minWidth;
|
|
28679
|
-
}, function (props) {
|
|
28680
|
-
return props.percentageWidth;
|
|
28681
|
-
}, function (props) {
|
|
28682
|
-
return props.style;
|
|
28683
|
-
});
|
|
28684
|
-
|
|
28685
|
-
var img$8 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6Rw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';
|
|
28686
|
-
|
|
28687
|
-
var QuestInfo = function QuestInfo(_ref) {
|
|
28688
|
-
var quests = _ref.quests,
|
|
28689
|
-
onClose = _ref.onClose,
|
|
28690
|
-
buttons = _ref.buttons,
|
|
28691
|
-
onChangeQuest = _ref.onChangeQuest;
|
|
28692
|
-
var _useState = useState(0),
|
|
28693
|
-
currentIndex = _useState[0],
|
|
28694
|
-
setCurrentIndex = _useState[1];
|
|
28695
|
-
var questsLength = quests.length - 1;
|
|
28696
28585
|
useEffect(function () {
|
|
28697
|
-
|
|
28698
|
-
|
|
28699
|
-
|
|
28700
|
-
|
|
28701
|
-
|
|
28702
|
-
|
|
28703
|
-
|
|
28704
|
-
|
|
28705
|
-
|
|
28706
|
-
|
|
28707
|
-
|
|
28708
|
-
|
|
28709
|
-
|
|
28710
|
-
|
|
28711
|
-
|
|
28586
|
+
document.addEventListener('keydown', onHandleSpacePress);
|
|
28587
|
+
return function () {
|
|
28588
|
+
return document.removeEventListener('keydown', onHandleSpacePress);
|
|
28589
|
+
};
|
|
28590
|
+
}, [slide]);
|
|
28591
|
+
return React.createElement(RPGUIContainer, {
|
|
28592
|
+
type: RPGUIContainerTypes.FramedGold,
|
|
28593
|
+
width: '50%',
|
|
28594
|
+
height: '180px'
|
|
28595
|
+
}, React.createElement(React.Fragment, null, React.createElement(Container$d, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React.createElement(React.Fragment, null, React.createElement(TextContainer$2, {
|
|
28596
|
+
flex: '70%'
|
|
28597
|
+
}, React.createElement(NPCDialogText, {
|
|
28598
|
+
onStartStep: function onStartStep() {
|
|
28599
|
+
return setShowGoNextIndicator(false);
|
|
28600
|
+
},
|
|
28601
|
+
onEndStep: function onEndStep() {
|
|
28602
|
+
return setShowGoNextIndicator(true);
|
|
28603
|
+
},
|
|
28604
|
+
text: textAndTypeArray[slide].text || 'No text provided.',
|
|
28605
|
+
onClose: function onClose() {
|
|
28606
|
+
if (_onClose) {
|
|
28607
|
+
_onClose();
|
|
28608
|
+
}
|
|
28609
|
+
}
|
|
28610
|
+
})), React.createElement(ThumbnailContainer$1, null, React.createElement(NPCThumbnail$1, {
|
|
28611
|
+
src: textAndTypeArray[slide].imagePath || img$6
|
|
28612
|
+
})), showGoNextIndicator && React.createElement(PressSpaceIndicator$1, {
|
|
28613
|
+
right: '10.5rem',
|
|
28614
|
+
src: img$7
|
|
28615
|
+
})), textAndTypeArray[slide].imageSide === 'left' && React.createElement(React.Fragment, null, React.createElement(ThumbnailContainer$1, null, React.createElement(NPCThumbnail$1, {
|
|
28616
|
+
src: textAndTypeArray[slide].imagePath || img$6
|
|
28617
|
+
})), React.createElement(TextContainer$2, {
|
|
28618
|
+
flex: '70%'
|
|
28619
|
+
}, React.createElement(NPCDialogText, {
|
|
28620
|
+
onStartStep: function onStartStep() {
|
|
28621
|
+
return setShowGoNextIndicator(false);
|
|
28622
|
+
},
|
|
28623
|
+
onEndStep: function onEndStep() {
|
|
28624
|
+
return setShowGoNextIndicator(true);
|
|
28625
|
+
},
|
|
28626
|
+
text: textAndTypeArray[slide].text || 'No text provided.',
|
|
28627
|
+
onClose: function onClose() {
|
|
28628
|
+
if (_onClose) {
|
|
28629
|
+
_onClose();
|
|
28630
|
+
}
|
|
28631
|
+
}
|
|
28632
|
+
})), showGoNextIndicator && React.createElement(PressSpaceIndicator$1, {
|
|
28633
|
+
right: '1rem',
|
|
28634
|
+
src: img$7
|
|
28635
|
+
}))), ")"));
|
|
28636
|
+
};
|
|
28637
|
+
var Container$d = /*#__PURE__*/styled.div.withConfig({
|
|
28638
|
+
displayName: "NPCMultiDialog__Container",
|
|
28639
|
+
componentId: "sc-rvu5wg-0"
|
|
28640
|
+
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
28641
|
+
var TextContainer$2 = /*#__PURE__*/styled.div.withConfig({
|
|
28642
|
+
displayName: "NPCMultiDialog__TextContainer",
|
|
28643
|
+
componentId: "sc-rvu5wg-1"
|
|
28644
|
+
})(["flex:", " 0 0;width:355px;"], function (_ref2) {
|
|
28645
|
+
var flex = _ref2.flex;
|
|
28646
|
+
return flex;
|
|
28647
|
+
});
|
|
28648
|
+
var ThumbnailContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
28649
|
+
displayName: "NPCMultiDialog__ThumbnailContainer",
|
|
28650
|
+
componentId: "sc-rvu5wg-2"
|
|
28651
|
+
})(["flex:30% 0 0;display:flex;justify-content:flex-end;"]);
|
|
28652
|
+
var NPCThumbnail$1 = /*#__PURE__*/styled.img.withConfig({
|
|
28653
|
+
displayName: "NPCMultiDialog__NPCThumbnail",
|
|
28654
|
+
componentId: "sc-rvu5wg-3"
|
|
28655
|
+
})(["image-rendering:pixelated;height:128px;width:128px;"]);
|
|
28656
|
+
var PressSpaceIndicator$1 = /*#__PURE__*/styled.img.withConfig({
|
|
28657
|
+
displayName: "NPCMultiDialog__PressSpaceIndicator",
|
|
28658
|
+
componentId: "sc-rvu5wg-4"
|
|
28659
|
+
})(["position:absolute;right:", ";bottom:1rem;height:20.7px;image-rendering:-webkit-optimize-contrast;"], function (_ref3) {
|
|
28660
|
+
var right = _ref3.right;
|
|
28661
|
+
return right;
|
|
28662
|
+
});
|
|
28663
|
+
|
|
28664
|
+
var HistoryDialog = function HistoryDialog(_ref) {
|
|
28665
|
+
var backgroundImgPath = _ref.backgroundImgPath,
|
|
28666
|
+
fullCoverBackground = _ref.fullCoverBackground,
|
|
28667
|
+
questions = _ref.questions,
|
|
28668
|
+
answers = _ref.answers,
|
|
28669
|
+
text = _ref.text,
|
|
28670
|
+
imagePath = _ref.imagePath,
|
|
28671
|
+
textAndTypeArray = _ref.textAndTypeArray,
|
|
28672
|
+
onClose = _ref.onClose;
|
|
28673
|
+
var _useState = useState(0),
|
|
28674
|
+
img = _useState[0],
|
|
28675
|
+
setImage = _useState[1];
|
|
28676
|
+
var onHandleSpacePress = function onHandleSpacePress(event) {
|
|
28677
|
+
if (event.code === 'Space') {
|
|
28678
|
+
if (img < (backgroundImgPath == null ? void 0 : backgroundImgPath.length) - 1) {
|
|
28679
|
+
setImage(function (prev) {
|
|
28680
|
+
return prev + 1;
|
|
28681
|
+
});
|
|
28682
|
+
} else {
|
|
28683
|
+
// if there's no more text chunks, close the dialog
|
|
28684
|
+
onClose();
|
|
28685
|
+
}
|
|
28686
|
+
}
|
|
28687
|
+
};
|
|
28688
|
+
useEffect(function () {
|
|
28689
|
+
document.addEventListener('keydown', onHandleSpacePress);
|
|
28690
|
+
return function () {
|
|
28691
|
+
return document.removeEventListener('keydown', onHandleSpacePress);
|
|
28692
|
+
};
|
|
28693
|
+
}, [backgroundImgPath]);
|
|
28694
|
+
return React.createElement(BackgroundContainer, {
|
|
28695
|
+
imgPath: backgroundImgPath[img],
|
|
28696
|
+
fullImg: fullCoverBackground
|
|
28697
|
+
}, React.createElement(DialogContainer, null, textAndTypeArray ? React.createElement(NPCMultiDialog, {
|
|
28698
|
+
textAndTypeArray: textAndTypeArray,
|
|
28699
|
+
onClose: onClose
|
|
28700
|
+
}) : questions && answers ? React.createElement(QuestionDialog, {
|
|
28701
|
+
questions: questions,
|
|
28702
|
+
answers: answers,
|
|
28703
|
+
onClose: onClose
|
|
28704
|
+
}) : text && imagePath ? React.createElement(NPCDialog, {
|
|
28705
|
+
text: text,
|
|
28706
|
+
imagePath: imagePath,
|
|
28707
|
+
onClose: onClose,
|
|
28708
|
+
type: NPCDialogType.TextAndThumbnail
|
|
28709
|
+
}) : React.createElement(NPCDialog, {
|
|
28710
|
+
text: text,
|
|
28711
|
+
onClose: onClose,
|
|
28712
|
+
type: NPCDialogType.TextOnly
|
|
28713
|
+
})));
|
|
28714
|
+
};
|
|
28715
|
+
var BackgroundContainer = /*#__PURE__*/styled.div.withConfig({
|
|
28716
|
+
displayName: "HistoryDialog__BackgroundContainer",
|
|
28717
|
+
componentId: "sc-u6oe75-0"
|
|
28718
|
+
})(["width:100%;height:100%;background-image:url(", ");background-size:", ";display:flex;justify-content:space-evenly;align-items:center;"], function (props) {
|
|
28719
|
+
return props.imgPath;
|
|
28720
|
+
}, function (props) {
|
|
28721
|
+
return props.imgPath ? 'cover' : 'auto';
|
|
28722
|
+
});
|
|
28723
|
+
var DialogContainer = /*#__PURE__*/styled.div.withConfig({
|
|
28724
|
+
displayName: "HistoryDialog__DialogContainer",
|
|
28725
|
+
componentId: "sc-u6oe75-1"
|
|
28726
|
+
})(["display:flex;justify-content:center;padding-top:200px;"]);
|
|
28727
|
+
|
|
28728
|
+
var SlotsContainer = function SlotsContainer(_ref) {
|
|
28729
|
+
var children = _ref.children,
|
|
28730
|
+
title = _ref.title,
|
|
28731
|
+
onClose = _ref.onClose,
|
|
28732
|
+
_onPositionChange = _ref.onPositionChange,
|
|
28733
|
+
onOutsideClick = _ref.onOutsideClick;
|
|
28734
|
+
return React.createElement(DraggableContainer, {
|
|
28735
|
+
title: title,
|
|
28736
|
+
type: RPGUIContainerTypes.Framed,
|
|
28737
|
+
onCloseButton: function onCloseButton() {
|
|
28738
|
+
if (onClose) {
|
|
28739
|
+
onClose();
|
|
28740
|
+
}
|
|
28741
|
+
},
|
|
28742
|
+
width: "330px",
|
|
28743
|
+
cancelDrag: ".item-container-body",
|
|
28744
|
+
onPositionChange: function onPositionChange(_ref2) {
|
|
28745
|
+
var x = _ref2.x,
|
|
28746
|
+
y = _ref2.y;
|
|
28747
|
+
if (_onPositionChange) {
|
|
28748
|
+
_onPositionChange({
|
|
28749
|
+
x: x,
|
|
28750
|
+
y: y
|
|
28751
|
+
});
|
|
28752
|
+
}
|
|
28753
|
+
},
|
|
28754
|
+
onOutsideClick: onOutsideClick
|
|
28755
|
+
}, children);
|
|
28756
|
+
};
|
|
28757
|
+
|
|
28758
|
+
var ItemContainer = function ItemContainer(_ref) {
|
|
28759
|
+
var itemContainer = _ref.itemContainer,
|
|
28760
|
+
onClose = _ref.onClose,
|
|
28761
|
+
_onMouseOver = _ref.onMouseOver,
|
|
28762
|
+
_onSelected = _ref.onSelected,
|
|
28763
|
+
onItemClick = _ref.onItemClick,
|
|
28764
|
+
type = _ref.type,
|
|
28765
|
+
atlasJSON = _ref.atlasJSON,
|
|
28766
|
+
atlasIMG = _ref.atlasIMG;
|
|
28767
|
+
var onRenderSlots = function onRenderSlots() {
|
|
28768
|
+
var slots = [];
|
|
28769
|
+
for (var i = 0; i < itemContainer.slotQty; i++) {
|
|
28770
|
+
var _itemContainer$slots;
|
|
28771
|
+
slots.push(React.createElement(ItemSlot, {
|
|
28772
|
+
key: i,
|
|
28773
|
+
slotIndex: i,
|
|
28774
|
+
item: ((_itemContainer$slots = itemContainer.slots) == null ? void 0 : _itemContainer$slots[i]) || null,
|
|
28775
|
+
itemContainerType: type,
|
|
28776
|
+
onMouseOver: function onMouseOver(event, slotIndex, item) {
|
|
28777
|
+
if (_onMouseOver) _onMouseOver(event, slotIndex, item);
|
|
28778
|
+
},
|
|
28779
|
+
onClick: function onClick(ItemType, ContainerType, item) {
|
|
28780
|
+
if (onItemClick) onItemClick(item, ItemType, ContainerType);
|
|
28781
|
+
},
|
|
28782
|
+
onSelected: function onSelected(optionId, item) {
|
|
28783
|
+
if (_onSelected) _onSelected(optionId, item);
|
|
28784
|
+
},
|
|
28785
|
+
atlasIMG: atlasIMG,
|
|
28786
|
+
atlasJSON: atlasJSON
|
|
28787
|
+
}));
|
|
28788
|
+
}
|
|
28789
|
+
return slots;
|
|
28790
|
+
};
|
|
28791
|
+
return React.createElement(SlotsContainer, {
|
|
28792
|
+
title: itemContainer.name || 'Container',
|
|
28793
|
+
onClose: onClose
|
|
28794
|
+
}, React.createElement(ItemsContainer, {
|
|
28795
|
+
className: "item-container-body"
|
|
28796
|
+
}, onRenderSlots()));
|
|
28797
|
+
};
|
|
28798
|
+
var ItemsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
28799
|
+
displayName: "ItemContainer__ItemsContainer",
|
|
28800
|
+
componentId: "sc-15y5p9l-0"
|
|
28801
|
+
})(["max-width:280px;display:flex;justify-content:center;flex-wrap:wrap;"]);
|
|
28802
|
+
|
|
28803
|
+
var ListMenu = function ListMenu(_ref) {
|
|
28804
|
+
var options = _ref.options,
|
|
28805
|
+
onSelected = _ref.onSelected,
|
|
28806
|
+
x = _ref.x,
|
|
28807
|
+
y = _ref.y,
|
|
28808
|
+
_ref$fontSize = _ref.fontSize,
|
|
28809
|
+
fontSize = _ref$fontSize === void 0 ? 0.8 : _ref$fontSize;
|
|
28810
|
+
return React.createElement(Container$e, {
|
|
28811
|
+
x: x,
|
|
28812
|
+
y: y,
|
|
28813
|
+
fontSize: fontSize
|
|
28814
|
+
}, React.createElement("ul", {
|
|
28815
|
+
className: "rpgui-list-imp",
|
|
28816
|
+
style: {
|
|
28817
|
+
overflow: 'hidden'
|
|
28818
|
+
}
|
|
28819
|
+
}, options.map(function (params, index) {
|
|
28820
|
+
return React.createElement(ListElement$1, {
|
|
28821
|
+
key: (params == null ? void 0 : params.id) || index,
|
|
28822
|
+
onClick: function onClick() {
|
|
28823
|
+
onSelected(params == null ? void 0 : params.id);
|
|
28824
|
+
}
|
|
28825
|
+
}, (params == null ? void 0 : params.text) || 'No text');
|
|
28826
|
+
})));
|
|
28827
|
+
};
|
|
28828
|
+
var Container$e = /*#__PURE__*/styled.div.withConfig({
|
|
28829
|
+
displayName: "ListMenu__Container",
|
|
28830
|
+
componentId: "sc-i9097t-0"
|
|
28831
|
+
})(["display:flex;flex-direction:column;width:100%;justify-content:start;align-items:flex-start;position:absolute;top:", "px;left:", "px;li{font-size:", "em;}"], function (props) {
|
|
28832
|
+
return props.y || 0;
|
|
28833
|
+
}, function (props) {
|
|
28834
|
+
return props.x || 0;
|
|
28835
|
+
}, function (props) {
|
|
28836
|
+
return props.fontSize;
|
|
28837
|
+
});
|
|
28838
|
+
var ListElement$1 = /*#__PURE__*/styled.li.withConfig({
|
|
28839
|
+
displayName: "ListMenu__ListElement",
|
|
28840
|
+
componentId: "sc-i9097t-1"
|
|
28841
|
+
})(["margin-right:0.5rem;"]);
|
|
28842
|
+
|
|
28843
|
+
var ProgressBar = function ProgressBar(_ref) {
|
|
28844
|
+
var max = _ref.max,
|
|
28845
|
+
value = _ref.value,
|
|
28846
|
+
color = _ref.color,
|
|
28847
|
+
_ref$displayText = _ref.displayText,
|
|
28848
|
+
displayText = _ref$displayText === void 0 ? true : _ref$displayText,
|
|
28849
|
+
_ref$percentageWidth = _ref.percentageWidth,
|
|
28850
|
+
percentageWidth = _ref$percentageWidth === void 0 ? 40 : _ref$percentageWidth,
|
|
28851
|
+
_ref$minWidth = _ref.minWidth,
|
|
28852
|
+
minWidth = _ref$minWidth === void 0 ? 100 : _ref$minWidth,
|
|
28853
|
+
style = _ref.style;
|
|
28854
|
+
var calculatePercentageValue = function calculatePercentageValue(max, value) {
|
|
28855
|
+
if (value > max) {
|
|
28856
|
+
value = max;
|
|
28857
|
+
}
|
|
28858
|
+
return value * 100 / max;
|
|
28859
|
+
};
|
|
28860
|
+
return React.createElement(Container$f, {
|
|
28861
|
+
className: "rpgui-progress",
|
|
28862
|
+
"data-value": calculatePercentageValue(max, value) / 100,
|
|
28863
|
+
"data-rpguitype": "progress",
|
|
28864
|
+
percentageWidth: percentageWidth,
|
|
28865
|
+
minWidth: minWidth,
|
|
28866
|
+
style: style
|
|
28867
|
+
}, displayText && React.createElement(TextOverlay$1, null, React.createElement(ProgressBarText, null, value, "/", max)), React.createElement("div", {
|
|
28868
|
+
className: " rpgui-progress-track"
|
|
28869
|
+
}, React.createElement("div", {
|
|
28870
|
+
className: "rpgui-progress-fill " + color + " ",
|
|
28871
|
+
style: {
|
|
28872
|
+
left: '0px',
|
|
28873
|
+
width: calculatePercentageValue(max, value) + '%'
|
|
28874
|
+
}
|
|
28875
|
+
})), React.createElement("div", {
|
|
28876
|
+
className: " rpgui-progress-left-edge"
|
|
28877
|
+
}), React.createElement("div", {
|
|
28878
|
+
className: " rpgui-progress-right-edge"
|
|
28879
|
+
}));
|
|
28880
|
+
};
|
|
28881
|
+
var ProgressBarText = /*#__PURE__*/styled.span.withConfig({
|
|
28882
|
+
displayName: "ProgressBar__ProgressBarText",
|
|
28883
|
+
componentId: "sc-qa6fzh-0"
|
|
28884
|
+
})(["font-size:1rem;color:white;text-align:center;z-index:1;position:absolute;left:50%;transform:translateX(-50%);top:12px;"]);
|
|
28885
|
+
var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
|
|
28886
|
+
displayName: "ProgressBar__TextOverlay",
|
|
28887
|
+
componentId: "sc-qa6fzh-1"
|
|
28888
|
+
})(["width:100%;position:relative;"]);
|
|
28889
|
+
var Container$f = /*#__PURE__*/styled.div.withConfig({
|
|
28890
|
+
displayName: "ProgressBar__Container",
|
|
28891
|
+
componentId: "sc-qa6fzh-2"
|
|
28892
|
+
})(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", ""], function (props) {
|
|
28893
|
+
return props.minWidth;
|
|
28894
|
+
}, function (props) {
|
|
28895
|
+
return props.percentageWidth;
|
|
28896
|
+
}, function (props) {
|
|
28897
|
+
return props.style;
|
|
28898
|
+
});
|
|
28899
|
+
|
|
28900
|
+
var img$8 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtAD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AB1MAAA6mAAADqYAAAXb5JfxUYAAAHcSURBVHja7Ji/agJBEId/K/cCdoKFFjZCbGxCekmVOunzCil8hhS+gr3WVmIvKbQxIILFKQjXhCPkASZN5tjd27ud9SRYOKV3u/ftN7P/VESEa4gariRuIHZEkpeUUkYhEZEKbeNrG0mJJ/MlOq0m9odTKRg/W+2OaDfqRh9xkmbPbaBIMrLJfInB/R0AoN2o4+v7B3GSAkAOzAXAwW0XH59QSpEOIzLCEHanuq31Zot+r1sIYcdwNDZgahIblww2GTxrXDb02B9OAIB+r4tOqymCYXtspRQkxMZ6s82lK8SG14jPBnccYmM6W6Df62ZWSkGkNjgt59p4eXyAt1h9NvSoasMJcs5MqWqj0IjEBncuNVdmIwcSYmN/OIlSUjZTnCD2Ui7pXLqK+tKSgTCEtOikBcrAvrQAQE2HkIwwTlJj2l7CBgBERKSUUrTaHQ3lcZI6t3G2IZ0pEhvZ7ssww9E4Wym5YUi6qoQioqDZwmB6emxDtg3ej97fXv0nNN64OHQrutbpbGG8o//2/DRwpsyXFsOI9DDjCv0j+oCkNowakR6iXSks+rjURtDhWS9q+1DtMiL5eC41lar9D8w2pQMVrR1nGym7p9hA/25EcrESXchu/wbcQDzxOwDLF0pIXBCe1wAAAABJRU5ErkJggg==';
|
|
28901
|
+
|
|
28902
|
+
var QuestInfo = function QuestInfo(_ref) {
|
|
28903
|
+
var quests = _ref.quests,
|
|
28904
|
+
onClose = _ref.onClose,
|
|
28905
|
+
buttons = _ref.buttons,
|
|
28906
|
+
onChangeQuest = _ref.onChangeQuest;
|
|
28907
|
+
var _useState = useState(0),
|
|
28908
|
+
currentIndex = _useState[0],
|
|
28909
|
+
setCurrentIndex = _useState[1];
|
|
28910
|
+
var questsLength = quests.length - 1;
|
|
28911
|
+
useEffect(function () {
|
|
28912
|
+
if (onChangeQuest) {
|
|
28913
|
+
onChangeQuest(currentIndex, quests[currentIndex]._id);
|
|
28914
|
+
}
|
|
28915
|
+
}, [currentIndex]);
|
|
28916
|
+
var onLeftClick = function onLeftClick() {
|
|
28917
|
+
if (currentIndex === 0) setCurrentIndex(questsLength);else setCurrentIndex(function (index) {
|
|
28918
|
+
return index - 1;
|
|
28919
|
+
});
|
|
28920
|
+
};
|
|
28921
|
+
var onRightClick = function onRightClick() {
|
|
28922
|
+
if (currentIndex === questsLength) setCurrentIndex(0);else setCurrentIndex(function (index) {
|
|
28923
|
+
return index + 1;
|
|
28924
|
+
});
|
|
28925
|
+
};
|
|
28926
|
+
return React.createElement(QuestDraggableContainer, {
|
|
28712
28927
|
type: RPGUIContainerTypes.Framed,
|
|
28713
28928
|
onCloseButton: function onCloseButton() {
|
|
28714
28929
|
if (onClose) onClose();
|
|
28715
28930
|
},
|
|
28716
28931
|
width: "730px",
|
|
28717
28932
|
cancelDrag: ".equipment-container-body .arrow-selector"
|
|
28718
|
-
}, quests.length >= 2 ? React.createElement(QuestsContainer, null, currentIndex !== 0 && React.createElement(
|
|
28719
|
-
|
|
28933
|
+
}, quests.length >= 2 ? React.createElement(QuestsContainer, null, currentIndex !== 0 && React.createElement(SelectArrow, {
|
|
28934
|
+
direction: "left",
|
|
28720
28935
|
onClick: onLeftClick,
|
|
28721
28936
|
onTouchStart: onLeftClick
|
|
28722
|
-
}), currentIndex !== quests.length - 1 && React.createElement(
|
|
28723
|
-
|
|
28937
|
+
}), currentIndex !== quests.length - 1 && React.createElement(SelectArrow, {
|
|
28938
|
+
direction: "right",
|
|
28724
28939
|
onClick: onRightClick,
|
|
28725
28940
|
onTouchStart: onRightClick
|
|
28726
28941
|
}), React.createElement(QuestContainer, null, React.createElement(TitleContainer$1, {
|
|
@@ -28799,14 +29014,6 @@ var Thumbnail = /*#__PURE__*/styled.img.withConfig({
|
|
|
28799
29014
|
displayName: "QuestInfo__Thumbnail",
|
|
28800
29015
|
componentId: "sc-15s2boc-8"
|
|
28801
29016
|
})(["color:white;z-index:22;font-size:10px;width:64px;margin-right:0.5rem;"]);
|
|
28802
|
-
var LeftArrow$1 = /*#__PURE__*/styled.div.withConfig({
|
|
28803
|
-
displayName: "QuestInfo__LeftArrow",
|
|
28804
|
-
componentId: "sc-15s2boc-9"
|
|
28805
|
-
})(["background-image:url(", ");background-size:100% 100%;left:0;position:absolute;width:40px;height:42px;:active{background-image:url(", ");}"], img$3, img$2);
|
|
28806
|
-
var RightArrow$1 = /*#__PURE__*/styled.div.withConfig({
|
|
28807
|
-
displayName: "QuestInfo__RightArrow",
|
|
28808
|
-
componentId: "sc-15s2boc-10"
|
|
28809
|
-
})(["background-image:url(", ");right:0;position:absolute;width:40px;background-size:100% 100%;height:42px;:active{background-image:url(", ");}"], img$5, img$4);
|
|
28810
29017
|
|
|
28811
29018
|
var QuestList = function QuestList(_ref) {
|
|
28812
29019
|
var quests = _ref.quests,
|
|
@@ -28928,7 +29135,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
28928
29135
|
bgColor = _ref$bgColor === void 0 ? 'red' : _ref$bgColor,
|
|
28929
29136
|
_ref$margin = _ref.margin,
|
|
28930
29137
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
28931
|
-
return React.createElement(Container$
|
|
29138
|
+
return React.createElement(Container$g, {
|
|
28932
29139
|
className: "simple-progress-bar"
|
|
28933
29140
|
}, React.createElement(ProgressBarContainer, {
|
|
28934
29141
|
margin: margin
|
|
@@ -28937,7 +29144,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
28937
29144
|
bgColor: bgColor
|
|
28938
29145
|
}))));
|
|
28939
29146
|
};
|
|
28940
|
-
var Container$
|
|
29147
|
+
var Container$g = /*#__PURE__*/styled.div.withConfig({
|
|
28941
29148
|
displayName: "SimpleProgressBar__Container",
|
|
28942
29149
|
componentId: "sc-mbeil3-0"
|
|
28943
29150
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -29127,193 +29334,7 @@ var TextArea = function TextArea(_ref) {
|
|
|
29127
29334
|
return React.createElement("textarea", Object.assign({}, props));
|
|
29128
29335
|
};
|
|
29129
29336
|
|
|
29130
|
-
|
|
29131
|
-
var Truncate = function Truncate(_ref) {
|
|
29132
|
-
var _ref$maxLines = _ref.maxLines,
|
|
29133
|
-
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
29134
|
-
children = _ref.children;
|
|
29135
|
-
return React.createElement(Container$g, {
|
|
29136
|
-
maxLines: maxLines
|
|
29137
|
-
}, children);
|
|
29138
|
-
};
|
|
29139
|
-
var Container$g = /*#__PURE__*/styled.div.withConfig({
|
|
29140
|
-
displayName: "Truncate__Container",
|
|
29141
|
-
componentId: "sc-6x00qb-0"
|
|
29142
|
-
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
29143
|
-
return props.maxLines;
|
|
29144
|
-
});
|
|
29145
|
-
|
|
29146
|
-
var ImgSide;
|
|
29147
|
-
(function (ImgSide) {
|
|
29148
|
-
ImgSide["right"] = "right";
|
|
29149
|
-
ImgSide["left"] = "left";
|
|
29150
|
-
})(ImgSide || (ImgSide = {}));
|
|
29151
|
-
var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
29152
|
-
var _textAndTypeArray$sli;
|
|
29153
|
-
var _onClose = _ref.onClose,
|
|
29154
|
-
textAndTypeArray = _ref.textAndTypeArray;
|
|
29155
|
-
var _useState = useState(false),
|
|
29156
|
-
showGoNextIndicator = _useState[0],
|
|
29157
|
-
setShowGoNextIndicator = _useState[1];
|
|
29158
|
-
var _useState2 = useState(0),
|
|
29159
|
-
slide = _useState2[0],
|
|
29160
|
-
setSlide = _useState2[1];
|
|
29161
|
-
var onHandleSpacePress = function onHandleSpacePress(event) {
|
|
29162
|
-
if (event.code === 'Space') {
|
|
29163
|
-
if (slide < (textAndTypeArray == null ? void 0 : textAndTypeArray.length) - 1) {
|
|
29164
|
-
setSlide(function (prev) {
|
|
29165
|
-
return prev + 1;
|
|
29166
|
-
});
|
|
29167
|
-
} else {
|
|
29168
|
-
// if there's no more text chunks, close the dialog
|
|
29169
|
-
_onClose();
|
|
29170
|
-
}
|
|
29171
|
-
}
|
|
29172
|
-
};
|
|
29173
|
-
useEffect(function () {
|
|
29174
|
-
document.addEventListener('keydown', onHandleSpacePress);
|
|
29175
|
-
return function () {
|
|
29176
|
-
return document.removeEventListener('keydown', onHandleSpacePress);
|
|
29177
|
-
};
|
|
29178
|
-
}, [slide]);
|
|
29179
|
-
return React.createElement(RPGUIContainer, {
|
|
29180
|
-
type: RPGUIContainerTypes.FramedGold,
|
|
29181
|
-
width: '50%',
|
|
29182
|
-
height: '180px'
|
|
29183
|
-
}, React.createElement(React.Fragment, null, React.createElement(Container$h, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React.createElement(React.Fragment, null, React.createElement(TextContainer$2, {
|
|
29184
|
-
flex: '70%'
|
|
29185
|
-
}, React.createElement(NPCDialogText, {
|
|
29186
|
-
onStartStep: function onStartStep() {
|
|
29187
|
-
return setShowGoNextIndicator(false);
|
|
29188
|
-
},
|
|
29189
|
-
onEndStep: function onEndStep() {
|
|
29190
|
-
return setShowGoNextIndicator(true);
|
|
29191
|
-
},
|
|
29192
|
-
text: textAndTypeArray[slide].text || 'No text provided.',
|
|
29193
|
-
onClose: function onClose() {
|
|
29194
|
-
if (_onClose) {
|
|
29195
|
-
_onClose();
|
|
29196
|
-
}
|
|
29197
|
-
}
|
|
29198
|
-
})), React.createElement(ThumbnailContainer$1, null, React.createElement(NPCThumbnail$1, {
|
|
29199
|
-
src: textAndTypeArray[slide].imagePath || img$6
|
|
29200
|
-
})), showGoNextIndicator && React.createElement(PressSpaceIndicator$1, {
|
|
29201
|
-
right: '10.5rem',
|
|
29202
|
-
src: img$7
|
|
29203
|
-
})), textAndTypeArray[slide].imageSide === 'left' && React.createElement(React.Fragment, null, React.createElement(ThumbnailContainer$1, null, React.createElement(NPCThumbnail$1, {
|
|
29204
|
-
src: textAndTypeArray[slide].imagePath || img$6
|
|
29205
|
-
})), React.createElement(TextContainer$2, {
|
|
29206
|
-
flex: '70%'
|
|
29207
|
-
}, React.createElement(NPCDialogText, {
|
|
29208
|
-
onStartStep: function onStartStep() {
|
|
29209
|
-
return setShowGoNextIndicator(false);
|
|
29210
|
-
},
|
|
29211
|
-
onEndStep: function onEndStep() {
|
|
29212
|
-
return setShowGoNextIndicator(true);
|
|
29213
|
-
},
|
|
29214
|
-
text: textAndTypeArray[slide].text || 'No text provided.',
|
|
29215
|
-
onClose: function onClose() {
|
|
29216
|
-
if (_onClose) {
|
|
29217
|
-
_onClose();
|
|
29218
|
-
}
|
|
29219
|
-
}
|
|
29220
|
-
})), showGoNextIndicator && React.createElement(PressSpaceIndicator$1, {
|
|
29221
|
-
right: '1rem',
|
|
29222
|
-
src: img$7
|
|
29223
|
-
}))), ")"));
|
|
29224
|
-
};
|
|
29225
|
-
var Container$h = /*#__PURE__*/styled.div.withConfig({
|
|
29226
|
-
displayName: "NPCMultiDialog__Container",
|
|
29227
|
-
componentId: "sc-rvu5wg-0"
|
|
29228
|
-
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
29229
|
-
var TextContainer$2 = /*#__PURE__*/styled.div.withConfig({
|
|
29230
|
-
displayName: "NPCMultiDialog__TextContainer",
|
|
29231
|
-
componentId: "sc-rvu5wg-1"
|
|
29232
|
-
})(["flex:", " 0 0;width:355px;"], function (_ref2) {
|
|
29233
|
-
var flex = _ref2.flex;
|
|
29234
|
-
return flex;
|
|
29235
|
-
});
|
|
29236
|
-
var ThumbnailContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
29237
|
-
displayName: "NPCMultiDialog__ThumbnailContainer",
|
|
29238
|
-
componentId: "sc-rvu5wg-2"
|
|
29239
|
-
})(["flex:30% 0 0;display:flex;justify-content:flex-end;"]);
|
|
29240
|
-
var NPCThumbnail$1 = /*#__PURE__*/styled.img.withConfig({
|
|
29241
|
-
displayName: "NPCMultiDialog__NPCThumbnail",
|
|
29242
|
-
componentId: "sc-rvu5wg-3"
|
|
29243
|
-
})(["image-rendering:pixelated;height:128px;width:128px;"]);
|
|
29244
|
-
var PressSpaceIndicator$1 = /*#__PURE__*/styled.img.withConfig({
|
|
29245
|
-
displayName: "NPCMultiDialog__PressSpaceIndicator",
|
|
29246
|
-
componentId: "sc-rvu5wg-4"
|
|
29247
|
-
})(["position:absolute;right:", ";bottom:1rem;height:20.7px;image-rendering:-webkit-optimize-contrast;"], function (_ref3) {
|
|
29248
|
-
var right = _ref3.right;
|
|
29249
|
-
return right;
|
|
29250
|
-
});
|
|
29251
|
-
|
|
29252
|
-
var HistoryDialog = function HistoryDialog(_ref) {
|
|
29253
|
-
var backgroundImgPath = _ref.backgroundImgPath,
|
|
29254
|
-
fullCoverBackground = _ref.fullCoverBackground,
|
|
29255
|
-
questions = _ref.questions,
|
|
29256
|
-
answers = _ref.answers,
|
|
29257
|
-
text = _ref.text,
|
|
29258
|
-
imagePath = _ref.imagePath,
|
|
29259
|
-
textAndTypeArray = _ref.textAndTypeArray,
|
|
29260
|
-
onClose = _ref.onClose;
|
|
29261
|
-
var _useState = useState(0),
|
|
29262
|
-
img = _useState[0],
|
|
29263
|
-
setImage = _useState[1];
|
|
29264
|
-
var onHandleSpacePress = function onHandleSpacePress(event) {
|
|
29265
|
-
if (event.code === 'Space') {
|
|
29266
|
-
if (img < (backgroundImgPath == null ? void 0 : backgroundImgPath.length) - 1) {
|
|
29267
|
-
setImage(function (prev) {
|
|
29268
|
-
return prev + 1;
|
|
29269
|
-
});
|
|
29270
|
-
} else {
|
|
29271
|
-
// if there's no more text chunks, close the dialog
|
|
29272
|
-
onClose();
|
|
29273
|
-
}
|
|
29274
|
-
}
|
|
29275
|
-
};
|
|
29276
|
-
useEffect(function () {
|
|
29277
|
-
document.addEventListener('keydown', onHandleSpacePress);
|
|
29278
|
-
return function () {
|
|
29279
|
-
return document.removeEventListener('keydown', onHandleSpacePress);
|
|
29280
|
-
};
|
|
29281
|
-
}, [backgroundImgPath]);
|
|
29282
|
-
return React.createElement(BackgroundContainer, {
|
|
29283
|
-
imgPath: backgroundImgPath[img],
|
|
29284
|
-
fullImg: fullCoverBackground
|
|
29285
|
-
}, React.createElement(DialogContainer, null, textAndTypeArray ? React.createElement(NPCMultiDialog, {
|
|
29286
|
-
textAndTypeArray: textAndTypeArray,
|
|
29287
|
-
onClose: onClose
|
|
29288
|
-
}) : questions && answers ? React.createElement(QuestionDialog, {
|
|
29289
|
-
questions: questions,
|
|
29290
|
-
answers: answers,
|
|
29291
|
-
onClose: onClose
|
|
29292
|
-
}) : text && imagePath ? React.createElement(NPCDialog, {
|
|
29293
|
-
text: text,
|
|
29294
|
-
imagePath: imagePath,
|
|
29295
|
-
onClose: onClose,
|
|
29296
|
-
type: NPCDialogType.TextAndThumbnail
|
|
29297
|
-
}) : React.createElement(NPCDialog, {
|
|
29298
|
-
text: text,
|
|
29299
|
-
onClose: onClose,
|
|
29300
|
-
type: NPCDialogType.TextOnly
|
|
29301
|
-
})));
|
|
29302
|
-
};
|
|
29303
|
-
var BackgroundContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29304
|
-
displayName: "HistoryDialog__BackgroundContainer",
|
|
29305
|
-
componentId: "sc-u6oe75-0"
|
|
29306
|
-
})(["width:100%;height:100%;background-image:url(", ");background-size:", ";display:flex;justify-content:space-evenly;align-items:center;"], function (props) {
|
|
29307
|
-
return props.imgPath;
|
|
29308
|
-
}, function (props) {
|
|
29309
|
-
return props.imgPath ? 'cover' : 'auto';
|
|
29310
|
-
});
|
|
29311
|
-
var DialogContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29312
|
-
displayName: "HistoryDialog__DialogContainer",
|
|
29313
|
-
componentId: "sc-u6oe75-1"
|
|
29314
|
-
})(["display:flex;justify-content:center;padding-top:200px;"]);
|
|
29315
|
-
|
|
29316
|
-
var ItemTradingComponent = function ItemTradingComponent(_ref) {
|
|
29337
|
+
var TradingItemRow = function TradingItemRow(_ref) {
|
|
29317
29338
|
var atlasIMG = _ref.atlasIMG,
|
|
29318
29339
|
atlasJSON = _ref.atlasJSON,
|
|
29319
29340
|
updateChartTotals = _ref.updateChartTotals,
|
|
@@ -29336,68 +29357,79 @@ var ItemTradingComponent = function ItemTradingComponent(_ref) {
|
|
|
29336
29357
|
}
|
|
29337
29358
|
};
|
|
29338
29359
|
var onRightClick = function onRightClick() {
|
|
29339
|
-
|
|
29340
|
-
|
|
29341
|
-
|
|
29342
|
-
|
|
29343
|
-
|
|
29344
|
-
|
|
29345
|
-
|
|
29346
|
-
|
|
29347
|
-
|
|
29348
|
-
|
|
29360
|
+
if (itemQuantity < 999) {
|
|
29361
|
+
var newQuantity = itemQuantity + 1;
|
|
29362
|
+
setItemQuantity(newQuantity);
|
|
29363
|
+
updateChartTotals({
|
|
29364
|
+
key: traderItem.key,
|
|
29365
|
+
itemId: traderItem.itemId,
|
|
29366
|
+
qty: newQuantity,
|
|
29367
|
+
price: traderItem.price,
|
|
29368
|
+
texturePath: traderItem.texturePath,
|
|
29369
|
+
name: traderItem.name
|
|
29370
|
+
});
|
|
29371
|
+
}
|
|
29349
29372
|
};
|
|
29350
|
-
return React.createElement(ItemWrapper, null, React.createElement(
|
|
29373
|
+
return React.createElement(ItemWrapper, null, React.createElement(ItemIconContainer, null, React.createElement(SpriteContainer$1, null, React.createElement(SpriteFromAtlas, {
|
|
29351
29374
|
atlasIMG: atlasIMG,
|
|
29352
29375
|
atlasJSON: atlasJSON,
|
|
29353
29376
|
spriteKey: traderItem.texturePath,
|
|
29354
29377
|
imgScale: 2.5
|
|
29355
|
-
}))), React.createElement(
|
|
29378
|
+
}))), React.createElement(ItemNameContainer, null, React.createElement(NameValue, null, React.createElement(Ellipsis, {
|
|
29379
|
+
maxLines: 1,
|
|
29380
|
+
maxWidth: 250
|
|
29381
|
+
}, capitalize(traderItem.name)), React.createElement("p", null, "$", traderItem.price))), React.createElement(QuantityContainer, null, React.createElement(SelectArrow, {
|
|
29382
|
+
size: 32,
|
|
29383
|
+
className: "arrow-selector",
|
|
29384
|
+
direction: "left",
|
|
29356
29385
|
onClick: onLeftClick,
|
|
29357
29386
|
onTouchStart: onLeftClick
|
|
29358
|
-
}), React.createElement(
|
|
29387
|
+
}), React.createElement(QuantityDisplay, null, React.createElement(TextOverlay$2, null, React.createElement(Item$1, null, itemQuantity))), React.createElement(SelectArrow, {
|
|
29388
|
+
size: 32,
|
|
29389
|
+
className: "arrow-selector",
|
|
29390
|
+
direction: "right",
|
|
29359
29391
|
onClick: onRightClick,
|
|
29360
29392
|
onTouchStart: onRightClick
|
|
29361
29393
|
})));
|
|
29362
29394
|
};
|
|
29363
29395
|
var ItemWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
29364
|
-
displayName: "
|
|
29365
|
-
componentId: "sc-
|
|
29366
|
-
})(["width:
|
|
29367
|
-
var
|
|
29368
|
-
displayName: "
|
|
29369
|
-
componentId: "sc-
|
|
29370
|
-
})(["
|
|
29396
|
+
displayName: "TradingItemRow__ItemWrapper",
|
|
29397
|
+
componentId: "sc-mja0b5-0"
|
|
29398
|
+
})(["width:100%;margin:auto;display:flex;justify-content:space-between;margin-bottom:1rem;&:hover{background-color:", ";}padding:0.5rem;"], colors.darkGrey);
|
|
29399
|
+
var ItemNameContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29400
|
+
displayName: "TradingItemRow__ItemNameContainer",
|
|
29401
|
+
componentId: "sc-mja0b5-1"
|
|
29402
|
+
})(["flex:60%;"]);
|
|
29403
|
+
var ItemIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29404
|
+
displayName: "TradingItemRow__ItemIconContainer",
|
|
29405
|
+
componentId: "sc-mja0b5-2"
|
|
29406
|
+
})(["display:flex;justify-content:flex-start;align-items:center;flex:0 0 58px;"]);
|
|
29371
29407
|
var SpriteContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
29372
|
-
displayName: "
|
|
29373
|
-
componentId: "sc-
|
|
29374
|
-
})(["position:relative;top:-
|
|
29408
|
+
displayName: "TradingItemRow__SpriteContainer",
|
|
29409
|
+
componentId: "sc-mja0b5-3"
|
|
29410
|
+
})(["position:relative;top:-0.5rem;left:0.5rem;"]);
|
|
29375
29411
|
var NameValue = /*#__PURE__*/styled.div.withConfig({
|
|
29376
|
-
displayName: "
|
|
29377
|
-
componentId: "sc-
|
|
29378
|
-
})([""]);
|
|
29412
|
+
displayName: "TradingItemRow__NameValue",
|
|
29413
|
+
componentId: "sc-mja0b5-4"
|
|
29414
|
+
})(["p{font-size:0.75rem;margin:0;}"]);
|
|
29379
29415
|
var Item$1 = /*#__PURE__*/styled.span.withConfig({
|
|
29380
|
-
displayName: "
|
|
29381
|
-
componentId: "sc-
|
|
29382
|
-
})(["font-size:1rem;color:white;text-align:center;z-index:1;
|
|
29416
|
+
displayName: "TradingItemRow__Item",
|
|
29417
|
+
componentId: "sc-mja0b5-5"
|
|
29418
|
+
})(["font-size:1rem;color:white;text-align:center;z-index:1;width:100%;"]);
|
|
29383
29419
|
var TextOverlay$2 = /*#__PURE__*/styled.div.withConfig({
|
|
29384
|
-
displayName: "
|
|
29385
|
-
componentId: "sc-
|
|
29420
|
+
displayName: "TradingItemRow__TextOverlay",
|
|
29421
|
+
componentId: "sc-mja0b5-6"
|
|
29386
29422
|
})(["width:100%;position:relative;"]);
|
|
29387
|
-
var
|
|
29388
|
-
displayName: "
|
|
29389
|
-
componentId: "sc-
|
|
29390
|
-
})(["position:relative;display:flex;
|
|
29391
|
-
var
|
|
29392
|
-
displayName: "
|
|
29393
|
-
componentId: "sc-
|
|
29394
|
-
})(["
|
|
29395
|
-
var RightArrow$2 = /*#__PURE__*/styled.div.withConfig({
|
|
29396
|
-
displayName: "itemComponent__RightArrow",
|
|
29397
|
-
componentId: "sc-nc2o41-8"
|
|
29398
|
-
})(["background-image:url(", ");right:0;position:absolute;width:40px;background-size:100% 100%;height:42px;:active{background-image:url(", ");}z-index:2;"], img$5, img$4);
|
|
29423
|
+
var QuantityContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29424
|
+
displayName: "TradingItemRow__QuantityContainer",
|
|
29425
|
+
componentId: "sc-mja0b5-7"
|
|
29426
|
+
})(["position:relative;display:flex;min-width:100px;width:40%;justify-content:center;align-items:center;flex:20%;"]);
|
|
29427
|
+
var QuantityDisplay = /*#__PURE__*/styled.div.withConfig({
|
|
29428
|
+
displayName: "TradingItemRow__QuantityDisplay",
|
|
29429
|
+
componentId: "sc-mja0b5-8"
|
|
29430
|
+
})(["font-size:0.8rem;"]);
|
|
29399
29431
|
|
|
29400
|
-
var
|
|
29432
|
+
var TradingMenu = function TradingMenu(_ref) {
|
|
29401
29433
|
var traderItems = _ref.traderItems,
|
|
29402
29434
|
onClose = _ref.onClose,
|
|
29403
29435
|
type = _ref.type,
|
|
@@ -29438,13 +29470,10 @@ var TrandingMenu = function TrandingMenu(_ref) {
|
|
|
29438
29470
|
style: {
|
|
29439
29471
|
width: '100%'
|
|
29440
29472
|
}
|
|
29441
|
-
}, React.createElement(Title$3, null, Capitalize(type)), React.createElement("hr", {
|
|
29473
|
+
}, React.createElement(Title$3, null, Capitalize(type), " Menu"), React.createElement("hr", {
|
|
29442
29474
|
className: "golden"
|
|
29443
|
-
})), React.createElement(
|
|
29444
|
-
return React.createElement(ItemWrapper$1, {
|
|
29445
|
-
key: v4()
|
|
29446
|
-
}, React.createElement(ItemTradingComponent, {
|
|
29447
|
-
key: v4(),
|
|
29475
|
+
})), React.createElement(TradingComponentScrollWrapper, null, traderItems.map(function (tradeItem) {
|
|
29476
|
+
return React.createElement(ItemWrapper$1, null, React.createElement(TradingItemRow, {
|
|
29448
29477
|
atlasIMG: atlasIMG,
|
|
29449
29478
|
atlasJSON: atlasJSON,
|
|
29450
29479
|
updateChartTotals: updateChartTotals,
|
|
@@ -29458,37 +29487,53 @@ var TrandingMenu = function TrandingMenu(_ref) {
|
|
|
29458
29487
|
}, "Cancel"))));
|
|
29459
29488
|
};
|
|
29460
29489
|
var TradingMenuDraggableContainer = /*#__PURE__*/styled(DraggableContainer).withConfig({
|
|
29461
|
-
displayName: "
|
|
29462
|
-
componentId: "sc-
|
|
29490
|
+
displayName: "TradingMenu__TradingMenuDraggableContainer",
|
|
29491
|
+
componentId: "sc-1wjsz1l-0"
|
|
29463
29492
|
})([".container-close{top:10px;right:10px;}.quest-title{text-align:left;margin-left:44px;margin-top:20px;color:yellow;}.quest-desc{margin-top:12px;margin-left:44px;}.rpgui-progress{min-width:80%;margin:0 auto;}"]);
|
|
29464
29493
|
var Title$3 = /*#__PURE__*/styled.h1.withConfig({
|
|
29465
|
-
displayName: "
|
|
29466
|
-
componentId: "sc-
|
|
29494
|
+
displayName: "TradingMenu__Title",
|
|
29495
|
+
componentId: "sc-1wjsz1l-1"
|
|
29467
29496
|
})(["z-index:22;font-size:0.6rem;color:yellow !important;"]);
|
|
29468
|
-
var
|
|
29469
|
-
displayName: "
|
|
29470
|
-
componentId: "sc-
|
|
29471
|
-
})(["overflow-y:scroll;height:500px;width:100%;"]);
|
|
29497
|
+
var TradingComponentScrollWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
29498
|
+
displayName: "TradingMenu__TradingComponentScrollWrapper",
|
|
29499
|
+
componentId: "sc-1wjsz1l-2"
|
|
29500
|
+
})(["overflow-y:scroll;height:500px;width:100%;margin-top:1rem;"]);
|
|
29472
29501
|
var ItemWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
29473
|
-
displayName: "
|
|
29474
|
-
componentId: "sc-
|
|
29475
|
-
})(["
|
|
29502
|
+
displayName: "TradingMenu__ItemWrapper",
|
|
29503
|
+
componentId: "sc-1wjsz1l-3"
|
|
29504
|
+
})(["margin:auto;display:flex;justify-content:space-between;"]);
|
|
29476
29505
|
var TotalWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
29477
|
-
displayName: "
|
|
29478
|
-
componentId: "sc-
|
|
29479
|
-
})(["
|
|
29506
|
+
displayName: "TradingMenu__TotalWrapper",
|
|
29507
|
+
componentId: "sc-1wjsz1l-4"
|
|
29508
|
+
})(["display:flex;margin:auto;justify-content:space-between;height:20px;margin-left:0.8rem;"]);
|
|
29480
29509
|
var GoldWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
29481
|
-
displayName: "
|
|
29482
|
-
componentId: "sc-
|
|
29483
|
-
})(["
|
|
29510
|
+
displayName: "TradingMenu__GoldWrapper",
|
|
29511
|
+
componentId: "sc-1wjsz1l-5"
|
|
29512
|
+
})(["margin-top:1rem;display:flex;justify-content:space-between;height:20px;p{color:yellow !important;}width:100%;margin-left:0.8rem;"]);
|
|
29484
29513
|
var AlertWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
29485
|
-
displayName: "
|
|
29486
|
-
componentId: "sc-
|
|
29487
|
-
})(["
|
|
29514
|
+
displayName: "TradingMenu__AlertWrapper",
|
|
29515
|
+
componentId: "sc-1wjsz1l-6"
|
|
29516
|
+
})(["display:flex;width:100%;justify-content:center;height:20px;p{color:red !important;}"]);
|
|
29488
29517
|
var ButtonWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
29489
|
-
displayName: "
|
|
29490
|
-
componentId: "sc-
|
|
29491
|
-
})(["
|
|
29518
|
+
displayName: "TradingMenu__ButtonWrapper",
|
|
29519
|
+
componentId: "sc-1wjsz1l-7"
|
|
29520
|
+
})(["display:flex;justify-content:space-around;padding-top:20px;width:100%;margin-top:1rem;"]);
|
|
29521
|
+
|
|
29522
|
+
/* eslint-disable react/require-default-props */
|
|
29523
|
+
var Truncate = function Truncate(_ref) {
|
|
29524
|
+
var _ref$maxLines = _ref.maxLines,
|
|
29525
|
+
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
29526
|
+
children = _ref.children;
|
|
29527
|
+
return React.createElement(Container$h, {
|
|
29528
|
+
maxLines: maxLines
|
|
29529
|
+
}, children);
|
|
29530
|
+
};
|
|
29531
|
+
var Container$h = /*#__PURE__*/styled.div.withConfig({
|
|
29532
|
+
displayName: "Truncate__Container",
|
|
29533
|
+
componentId: "sc-6x00qb-0"
|
|
29534
|
+
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
29535
|
+
return props.maxLines;
|
|
29536
|
+
});
|
|
29492
29537
|
|
|
29493
|
-
export { Button, ButtonTypes, CharacterSelection, Chat, CheckButton, DraggableContainer, Dropdown, DynamicText, EquipmentSet, HistoryDialog, ImgSide, Input, InputRadio, ItemContainer, ItemSlot, ListMenu, NPCDialog, NPCDialogType, NPCMultiDialog, ProgressBar, PropertySelect, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SkillProgressBar, SkillsContainer, SpriteFromAtlas, TextArea,
|
|
29538
|
+
export { Button, ButtonTypes, CharacterSelection, Chat, CheckButton, DraggableContainer, Dropdown, DynamicText, EquipmentSet, HistoryDialog, ImgSide, Input, InputRadio, ItemContainer, ItemSlot, ListMenu, NPCDialog, NPCDialogType, NPCMultiDialog, ProgressBar, PropertySelect, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SkillProgressBar, SkillsContainer, SpriteFromAtlas, TextArea, TradingMenu, Truncate, _RPGUI, useEventListener };
|
|
29494
29539
|
//# sourceMappingURL=long-bow.esm.js.map
|