@rpg-engine/long-bow 0.4.85 → 0.4.87
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/PartySystem/PartyCreate/PartyCreate.d.ts +6 -0
- package/dist/components/PartySystem/PartyCreate/index.d.ts +1 -0
- package/dist/components/PartySystem/PartyDashboard/PartyDashboard.d.ts +6 -0
- package/dist/components/PartySystem/PartyDashboard/PartyRows.d.ts +11 -0
- package/dist/components/PartySystem/PartyDashboard/index.d.ts +2 -0
- package/dist/components/PartySystem/PartyInvite/PartyInvite.d.ts +6 -0
- package/dist/components/PartySystem/PartyInvite/PlayersRows.d.ts +9 -0
- package/dist/components/PartySystem/PartyInvite/index.d.ts +2 -0
- package/dist/components/PartySystem/PartyManager/PartyManager.d.ts +6 -0
- package/dist/components/PartySystem/PartyManager/PartyManagerRows.d.ts +8 -0
- package/dist/components/PartySystem/PartyManager/index.d.ts +2 -0
- package/dist/components/PartySystem/index.d.ts +5 -0
- package/dist/components/PartySystem/mockedConstantes/index.d.ts +1 -0
- package/dist/components/PartySystem/mockedConstantes/mockedValues.d.ts +6 -0
- package/dist/constants/uiColors.d.ts +1 -0
- package/dist/index.d.ts +5 -4
- package/dist/long-bow.cjs.development.js +491 -114
- 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 +482 -115
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/PartyCreate.stories.d.ts +5 -0
- package/dist/stories/PartyDashboard.stories.d.ts +5 -0
- package/dist/stories/PartyInvite.stories.d.ts +5 -0
- package/dist/stories/PartyManager.stories.d.ts +5 -0
- package/package.json +2 -2
- package/src/components/PartySystem/PartyCreate/PartyCreate.tsx +79 -0
- package/src/components/PartySystem/PartyCreate/index.ts +1 -0
- package/src/components/PartySystem/PartyDashboard/PartyDashboard.tsx +67 -0
- package/src/components/PartySystem/PartyDashboard/PartyRows.tsx +57 -0
- package/src/components/PartySystem/PartyDashboard/index.ts +2 -0
- package/src/components/PartySystem/PartyInvite/PartyInvite.tsx +60 -0
- package/src/components/PartySystem/PartyInvite/PlayersRows.tsx +49 -0
- package/src/components/PartySystem/PartyInvite/index.ts +2 -0
- package/src/components/PartySystem/PartyManager/PartyManager.tsx +57 -0
- package/src/components/PartySystem/PartyManager/PartyManagerRows.tsx +43 -0
- package/src/components/PartySystem/PartyManager/index.ts +2 -0
- package/src/components/PartySystem/index.ts +6 -0
- package/src/components/PartySystem/mockedConstantes/index.ts +1 -0
- package/src/components/PartySystem/mockedConstantes/mockedValues.tsx +150 -0
- package/src/components/SkillProgressBar.tsx +9 -6
- package/src/constants/uiColors.ts +1 -0
- package/src/index.tsx +5 -4
- package/src/stories/PartyCreate.stories.tsx +24 -0
- package/src/stories/PartyDashboard.stories.tsx +27 -0
- package/src/stories/PartyInvite.stories.tsx +27 -0
- package/src/stories/PartyManager.stories.tsx +27 -0
package/dist/long-bow.esm.js
CHANGED
|
@@ -12646,7 +12646,8 @@ var uiColors = {
|
|
|
12646
12646
|
darkBlue: '#30346D',
|
|
12647
12647
|
brown: '#854C30',
|
|
12648
12648
|
lightGreen: '#66cd1c',
|
|
12649
|
-
brownGreen: '#346524'
|
|
12649
|
+
brownGreen: '#346524',
|
|
12650
|
+
white: '#fff'
|
|
12650
12651
|
};
|
|
12651
12652
|
|
|
12652
12653
|
var _excluded$2 = ["innerRef"];
|
|
@@ -15556,92 +15557,6 @@ var QuantitySelectorContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
15556
15557
|
componentId: "sc-15y5p9l-1"
|
|
15557
15558
|
})(["position:absolute;top:0;left:0;width:100vw;height:100vh;z-index:100;display:flex;justify-content:center;align-items:center;background-color:rgba(0,0,0,0.5);"]);
|
|
15558
15559
|
|
|
15559
|
-
var ItemSelector = function ItemSelector(_ref) {
|
|
15560
|
-
var atlasIMG = _ref.atlasIMG,
|
|
15561
|
-
atlasJSON = _ref.atlasJSON,
|
|
15562
|
-
options = _ref.options,
|
|
15563
|
-
onClose = _ref.onClose,
|
|
15564
|
-
onSelect = _ref.onSelect;
|
|
15565
|
-
var _useState = useState(),
|
|
15566
|
-
selectedValue = _useState[0],
|
|
15567
|
-
setSelectedValue = _useState[1];
|
|
15568
|
-
var handleClick = function handleClick() {
|
|
15569
|
-
var element = document.querySelector("input[name='test']:checked");
|
|
15570
|
-
var elementValue = element.value;
|
|
15571
|
-
setSelectedValue(elementValue);
|
|
15572
|
-
};
|
|
15573
|
-
useEffect(function () {
|
|
15574
|
-
if (selectedValue) {
|
|
15575
|
-
onSelect(selectedValue);
|
|
15576
|
-
}
|
|
15577
|
-
}, [selectedValue]);
|
|
15578
|
-
return React.createElement(DraggableContainer, {
|
|
15579
|
-
type: RPGUIContainerTypes.Framed,
|
|
15580
|
-
width: "500px",
|
|
15581
|
-
cancelDrag: ".equipment-container-body .arrow-selector",
|
|
15582
|
-
onCloseButton: function onCloseButton() {
|
|
15583
|
-
if (onClose) {
|
|
15584
|
-
onClose();
|
|
15585
|
-
}
|
|
15586
|
-
}
|
|
15587
|
-
}, React.createElement("div", {
|
|
15588
|
-
style: {
|
|
15589
|
-
width: '100%'
|
|
15590
|
-
}
|
|
15591
|
-
}, React.createElement(Title$3, null, 'Harvesting instruments'), React.createElement(Subtitle$1, null, 'Use the tool, you need it'), React.createElement("hr", {
|
|
15592
|
-
className: "golden"
|
|
15593
|
-
})), React.createElement(RadioInputScroller$1, null, options == null ? void 0 : options.map(function (option, index) {
|
|
15594
|
-
return React.createElement(RadioOptionsWrapper$1, {
|
|
15595
|
-
key: index
|
|
15596
|
-
}, React.createElement(SpriteAtlasWrapper$1, null, React.createElement(SpriteFromAtlas, {
|
|
15597
|
-
atlasIMG: atlasIMG,
|
|
15598
|
-
atlasJSON: atlasJSON,
|
|
15599
|
-
spriteKey: option.imageKey,
|
|
15600
|
-
imgScale: 3
|
|
15601
|
-
})), React.createElement("div", null, React.createElement("input", {
|
|
15602
|
-
className: "rpgui-radio",
|
|
15603
|
-
type: "radio",
|
|
15604
|
-
value: option.name,
|
|
15605
|
-
name: "test"
|
|
15606
|
-
}), React.createElement("label", {
|
|
15607
|
-
onPointerDown: handleClick,
|
|
15608
|
-
style: {
|
|
15609
|
-
display: 'flex',
|
|
15610
|
-
alignItems: 'center'
|
|
15611
|
-
}
|
|
15612
|
-
}, option.name, " ", React.createElement("br", null), option.description)));
|
|
15613
|
-
})), React.createElement(ButtonWrapper$1, null, React.createElement(Button, {
|
|
15614
|
-
buttonType: ButtonTypes.RPGUIButton,
|
|
15615
|
-
onPointerDown: onClose
|
|
15616
|
-
}, "Cancel"), React.createElement(Button, {
|
|
15617
|
-
buttonType: ButtonTypes.RPGUIButton
|
|
15618
|
-
}, "Select")));
|
|
15619
|
-
};
|
|
15620
|
-
var Title$3 = /*#__PURE__*/styled.h1.withConfig({
|
|
15621
|
-
displayName: "ItemSelector__Title",
|
|
15622
|
-
componentId: "sc-gptoxp-0"
|
|
15623
|
-
})(["font-size:0.6rem;color:yellow !important;"]);
|
|
15624
|
-
var Subtitle$1 = /*#__PURE__*/styled.h1.withConfig({
|
|
15625
|
-
displayName: "ItemSelector__Subtitle",
|
|
15626
|
-
componentId: "sc-gptoxp-1"
|
|
15627
|
-
})(["font-size:0.4rem;color:yellow !important;"]);
|
|
15628
|
-
var RadioInputScroller$1 = /*#__PURE__*/styled.div.withConfig({
|
|
15629
|
-
displayName: "ItemSelector__RadioInputScroller",
|
|
15630
|
-
componentId: "sc-gptoxp-2"
|
|
15631
|
-
})(["padding-left:15px;padding-top:10px;width:100%;margin-top:1rem;align-items:center;margin-left:20px;align-items:flex-start;overflow-y:scroll;height:360px;"]);
|
|
15632
|
-
var SpriteAtlasWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
15633
|
-
displayName: "ItemSelector__SpriteAtlasWrapper",
|
|
15634
|
-
componentId: "sc-gptoxp-3"
|
|
15635
|
-
})(["margin-right:40px;"]);
|
|
15636
|
-
var RadioOptionsWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
15637
|
-
displayName: "ItemSelector__RadioOptionsWrapper",
|
|
15638
|
-
componentId: "sc-gptoxp-4"
|
|
15639
|
-
})(["display:flex;align-items:stretch;margin-bottom:40px;"]);
|
|
15640
|
-
var ButtonWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
15641
|
-
displayName: "ItemSelector__ButtonWrapper",
|
|
15642
|
-
componentId: "sc-gptoxp-5"
|
|
15643
|
-
})(["display:flex;justify-content:space-around;padding-top:20px;width:100%;"]);
|
|
15644
|
-
|
|
15645
15560
|
var ListMenu = function ListMenu(_ref) {
|
|
15646
15561
|
var options = _ref.options,
|
|
15647
15562
|
onSelected = _ref.onSelected,
|
|
@@ -16245,6 +16160,370 @@ var PagerContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
16245
16160
|
componentId: "sc-h904b1-0"
|
|
16246
16161
|
})(["display:flex;justify-content:space-between;align-items:center;width:calc(100% - 30px);"]);
|
|
16247
16162
|
|
|
16163
|
+
var PartyCreate = function PartyCreate(_ref) {
|
|
16164
|
+
var onClose = _ref.onClose,
|
|
16165
|
+
onCreate = _ref.onCreate;
|
|
16166
|
+
return React.createElement(DraggableContainer, {
|
|
16167
|
+
type: RPGUIContainerTypes.Framed,
|
|
16168
|
+
onCloseButton: function onCloseButton() {
|
|
16169
|
+
if (onClose) onClose();
|
|
16170
|
+
},
|
|
16171
|
+
width: "500px",
|
|
16172
|
+
height: "300px",
|
|
16173
|
+
cancelDrag: ".partyRows"
|
|
16174
|
+
}, React.createElement(Wrapper$2, null, React.createElement("div", {
|
|
16175
|
+
style: {
|
|
16176
|
+
width: '100%'
|
|
16177
|
+
}
|
|
16178
|
+
}, React.createElement(Title$3, null, "Create Party"), React.createElement("hr", {
|
|
16179
|
+
className: "golden"
|
|
16180
|
+
}))), React.createElement("h1", null, "Type your party name"), React.createElement(Input, {
|
|
16181
|
+
placeholder: "Type party name",
|
|
16182
|
+
type: "text"
|
|
16183
|
+
}), React.createElement(ButtonWrapper$1, null, React.createElement(Button, {
|
|
16184
|
+
buttonType: ButtonTypes.RPGUIButton,
|
|
16185
|
+
onPointerDown: function onPointerDown() {
|
|
16186
|
+
onCreate();
|
|
16187
|
+
}
|
|
16188
|
+
}, "Confirm"), React.createElement("div", {
|
|
16189
|
+
className: "cancel-button"
|
|
16190
|
+
}, React.createElement(Button, {
|
|
16191
|
+
buttonType: ButtonTypes.RPGUIButton,
|
|
16192
|
+
onPointerDown: function onPointerDown() {
|
|
16193
|
+
close();
|
|
16194
|
+
}
|
|
16195
|
+
}, "Cancel"))));
|
|
16196
|
+
};
|
|
16197
|
+
var Wrapper$2 = /*#__PURE__*/styled.div.withConfig({
|
|
16198
|
+
displayName: "PartyCreate__Wrapper",
|
|
16199
|
+
componentId: "sc-13brop0-0"
|
|
16200
|
+
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
16201
|
+
var Title$3 = /*#__PURE__*/styled.h1.withConfig({
|
|
16202
|
+
displayName: "PartyCreate__Title",
|
|
16203
|
+
componentId: "sc-13brop0-1"
|
|
16204
|
+
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
16205
|
+
var ButtonWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
16206
|
+
displayName: "PartyCreate__ButtonWrapper",
|
|
16207
|
+
componentId: "sc-13brop0-2"
|
|
16208
|
+
})(["margin-top:10px;width:100%;display:flex;justify-content:space-around;align-items:center;.cancel-button{filter:grayscale(0.7);}"]);
|
|
16209
|
+
|
|
16210
|
+
var PartyRow = function PartyRow(_ref) {
|
|
16211
|
+
var charName = _ref.charName,
|
|
16212
|
+
charClass = _ref.charClass,
|
|
16213
|
+
charLevel = _ref.charLevel,
|
|
16214
|
+
playerQty = _ref.playerQty,
|
|
16215
|
+
isInvited = _ref.isInvited,
|
|
16216
|
+
partyName = _ref.partyName;
|
|
16217
|
+
return React.createElement(PartyWrapper, null, React.createElement(TextContainer$3, null, partyName), React.createElement(TextContainer$3, null, charName), React.createElement(TextContainer$3, null, charClass), React.createElement(TextContainer$3, null, charLevel), React.createElement(TextContainer$3, null, playerQty, "/5"), isInvited ? React.createElement(React.Fragment, null, React.createElement(Button, {
|
|
16218
|
+
buttonType: ButtonTypes.RPGUIButton
|
|
16219
|
+
}, "Accept"), React.createElement("div", {
|
|
16220
|
+
className: "cancel-button"
|
|
16221
|
+
}, React.createElement(Button, {
|
|
16222
|
+
buttonType: ButtonTypes.RPGUIButton
|
|
16223
|
+
}, "Decline"))) : React.createElement(Button, {
|
|
16224
|
+
buttonType: ButtonTypes.RPGUIButton
|
|
16225
|
+
}, "Join"));
|
|
16226
|
+
};
|
|
16227
|
+
var PartyWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
16228
|
+
displayName: "PartyRows__PartyWrapper",
|
|
16229
|
+
componentId: "sc-xzuhrw-0"
|
|
16230
|
+
})(["width:100%;display:flex;align-items:center;justify-content:space-around;.cancel-button{filter:grayscale(0.7);}"]);
|
|
16231
|
+
var TextContainer$3 = /*#__PURE__*/styled.div.withConfig({
|
|
16232
|
+
displayName: "PartyRows__TextContainer",
|
|
16233
|
+
componentId: "sc-xzuhrw-1"
|
|
16234
|
+
})(["color:", ";"], uiColors.white);
|
|
16235
|
+
|
|
16236
|
+
var PartyDashboard = function PartyDashboard(_ref) {
|
|
16237
|
+
var partyRows = _ref.partyRows;
|
|
16238
|
+
return React.createElement(DraggableContainer, {
|
|
16239
|
+
type: RPGUIContainerTypes.Framed,
|
|
16240
|
+
onCloseButton: function onCloseButton() {
|
|
16241
|
+
console.log('Close');
|
|
16242
|
+
},
|
|
16243
|
+
width: "800px",
|
|
16244
|
+
height: "400px",
|
|
16245
|
+
cancelDrag: ".partyRows"
|
|
16246
|
+
}, React.createElement(Wrapper$3, null, React.createElement("div", {
|
|
16247
|
+
style: {
|
|
16248
|
+
width: '100%'
|
|
16249
|
+
}
|
|
16250
|
+
}, React.createElement(Title$4, null, "Party Dashboard"), React.createElement(Button, {
|
|
16251
|
+
buttonType: ButtonTypes.RPGUIButton
|
|
16252
|
+
}, "Create"), React.createElement("hr", {
|
|
16253
|
+
className: "golden"
|
|
16254
|
+
}))), React.createElement(RowsWrapper, {
|
|
16255
|
+
className: "partyRows"
|
|
16256
|
+
}, partyRows.map(function (partyRows) {
|
|
16257
|
+
return React.createElement(PartyRow, {
|
|
16258
|
+
key: partyRows.id,
|
|
16259
|
+
charName: partyRows.charName,
|
|
16260
|
+
charClass: partyRows.charClass,
|
|
16261
|
+
charLevel: partyRows.charLevel,
|
|
16262
|
+
playerQty: partyRows.playerQty,
|
|
16263
|
+
id: partyRows.id,
|
|
16264
|
+
isInvited: partyRows.isInvited,
|
|
16265
|
+
partyName: partyRows.partyName
|
|
16266
|
+
});
|
|
16267
|
+
})));
|
|
16268
|
+
};
|
|
16269
|
+
var Wrapper$3 = /*#__PURE__*/styled.div.withConfig({
|
|
16270
|
+
displayName: "PartyDashboard__Wrapper",
|
|
16271
|
+
componentId: "sc-16cm41r-0"
|
|
16272
|
+
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
16273
|
+
var RowsWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
16274
|
+
displayName: "PartyDashboard__RowsWrapper",
|
|
16275
|
+
componentId: "sc-16cm41r-1"
|
|
16276
|
+
})(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
|
|
16277
|
+
var Title$4 = /*#__PURE__*/styled.h1.withConfig({
|
|
16278
|
+
displayName: "PartyDashboard__Title",
|
|
16279
|
+
componentId: "sc-16cm41r-2"
|
|
16280
|
+
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
16281
|
+
|
|
16282
|
+
var PlayersRow = function PlayersRow(_ref) {
|
|
16283
|
+
var charName = _ref.charName,
|
|
16284
|
+
charClass = _ref.charClass,
|
|
16285
|
+
charLevel = _ref.charLevel,
|
|
16286
|
+
isNotInvited = _ref.isNotInvited;
|
|
16287
|
+
return React.createElement(PartyWrapper$1, null, React.createElement(TextContainer$4, null, charName), React.createElement(TextContainer$4, null, charClass), React.createElement(TextContainer$4, null, charLevel), isNotInvited ? React.createElement(React.Fragment, null, React.createElement(Button, {
|
|
16288
|
+
buttonType: ButtonTypes.RPGUIButton
|
|
16289
|
+
}, "Invite")) : React.createElement(TextContainer$4, null, "Invited"));
|
|
16290
|
+
};
|
|
16291
|
+
var PartyWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
16292
|
+
displayName: "PlayersRows__PartyWrapper",
|
|
16293
|
+
componentId: "sc-1ji7yc1-0"
|
|
16294
|
+
})(["width:100%;display:flex;align-items:center;justify-content:space-around;flex-direction:row;flex:auto;"]);
|
|
16295
|
+
var TextContainer$4 = /*#__PURE__*/styled.div.withConfig({
|
|
16296
|
+
displayName: "PlayersRows__TextContainer",
|
|
16297
|
+
componentId: "sc-1ji7yc1-1"
|
|
16298
|
+
})(["color:", ";flex:auto;margin:auto;"], uiColors.white);
|
|
16299
|
+
|
|
16300
|
+
var PartyInvite = function PartyInvite(_ref) {
|
|
16301
|
+
var playersRows = _ref.playersRows;
|
|
16302
|
+
return React.createElement(DraggableContainer, {
|
|
16303
|
+
type: RPGUIContainerTypes.Framed,
|
|
16304
|
+
onCloseButton: function onCloseButton() {
|
|
16305
|
+
console.log('Close');
|
|
16306
|
+
},
|
|
16307
|
+
width: "600px",
|
|
16308
|
+
height: "400px",
|
|
16309
|
+
cancelDrag: ".playersRows"
|
|
16310
|
+
}, React.createElement(Wrapper$4, null, React.createElement("div", {
|
|
16311
|
+
style: {
|
|
16312
|
+
width: '100%'
|
|
16313
|
+
}
|
|
16314
|
+
}, React.createElement(Title$5, null, "Invite for Party"), React.createElement("hr", {
|
|
16315
|
+
className: "golden"
|
|
16316
|
+
}))), React.createElement(RowsWrapper$1, {
|
|
16317
|
+
className: "playersRows"
|
|
16318
|
+
}, playersRows.map(function (playersRows) {
|
|
16319
|
+
return React.createElement(PlayersRow, {
|
|
16320
|
+
key: playersRows.id,
|
|
16321
|
+
charName: playersRows.charName,
|
|
16322
|
+
charClass: playersRows.charClass,
|
|
16323
|
+
charLevel: playersRows.charLevel,
|
|
16324
|
+
id: playersRows.id,
|
|
16325
|
+
isNotInvited: playersRows.isNotInvited
|
|
16326
|
+
});
|
|
16327
|
+
})));
|
|
16328
|
+
};
|
|
16329
|
+
var Wrapper$4 = /*#__PURE__*/styled.div.withConfig({
|
|
16330
|
+
displayName: "PartyInvite__Wrapper",
|
|
16331
|
+
componentId: "sc-eu8ggt-0"
|
|
16332
|
+
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
16333
|
+
var Title$5 = /*#__PURE__*/styled.h1.withConfig({
|
|
16334
|
+
displayName: "PartyInvite__Title",
|
|
16335
|
+
componentId: "sc-eu8ggt-1"
|
|
16336
|
+
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
16337
|
+
var RowsWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
16338
|
+
displayName: "PartyInvite__RowsWrapper",
|
|
16339
|
+
componentId: "sc-eu8ggt-2"
|
|
16340
|
+
})(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
|
|
16341
|
+
|
|
16342
|
+
var PartyManagerRow = function PartyManagerRow(_ref) {
|
|
16343
|
+
var charName = _ref.charName,
|
|
16344
|
+
charClass = _ref.charClass,
|
|
16345
|
+
charLevel = _ref.charLevel;
|
|
16346
|
+
return React.createElement(PartyWrapper$2, null, React.createElement(TextContainer$5, null, charName), React.createElement(TextContainer$5, null, charClass), React.createElement(TextContainer$5, null, charLevel), React.createElement("div", {
|
|
16347
|
+
className: "cancel-button"
|
|
16348
|
+
}, React.createElement(Button, {
|
|
16349
|
+
buttonType: ButtonTypes.RPGUIButton
|
|
16350
|
+
}, "Remove")), React.createElement(Button, {
|
|
16351
|
+
buttonType: ButtonTypes.RPGUIButton
|
|
16352
|
+
}, "New Leader"));
|
|
16353
|
+
};
|
|
16354
|
+
var PartyWrapper$2 = /*#__PURE__*/styled.div.withConfig({
|
|
16355
|
+
displayName: "PartyManagerRows__PartyWrapper",
|
|
16356
|
+
componentId: "sc-uqajew-0"
|
|
16357
|
+
})(["width:100%;display:flex;align-items:center;justify-content:space-around;.cancel-button{filter:grayscale(0.7);}"]);
|
|
16358
|
+
var TextContainer$5 = /*#__PURE__*/styled.div.withConfig({
|
|
16359
|
+
displayName: "PartyManagerRows__TextContainer",
|
|
16360
|
+
componentId: "sc-uqajew-1"
|
|
16361
|
+
})(["color:", ";"], uiColors.white);
|
|
16362
|
+
|
|
16363
|
+
var PartyManager = function PartyManager(_ref) {
|
|
16364
|
+
var partyRows = _ref.partyRows;
|
|
16365
|
+
return React.createElement(DraggableContainer, {
|
|
16366
|
+
type: RPGUIContainerTypes.Framed,
|
|
16367
|
+
onCloseButton: function onCloseButton() {
|
|
16368
|
+
console.log('Close');
|
|
16369
|
+
},
|
|
16370
|
+
width: "800px",
|
|
16371
|
+
height: "400px",
|
|
16372
|
+
cancelDrag: ".partyRows"
|
|
16373
|
+
}, React.createElement(Wrapper$5, null, React.createElement("div", {
|
|
16374
|
+
style: {
|
|
16375
|
+
width: '100%'
|
|
16376
|
+
}
|
|
16377
|
+
}, React.createElement(Title$6, null, "Party Dashboard"), React.createElement("hr", {
|
|
16378
|
+
className: "golden"
|
|
16379
|
+
}))), React.createElement(RowsWrapper$2, {
|
|
16380
|
+
className: "partyRows"
|
|
16381
|
+
}, partyRows.map(function (partyRows) {
|
|
16382
|
+
return React.createElement(PartyManagerRow, {
|
|
16383
|
+
key: partyRows.id,
|
|
16384
|
+
charName: partyRows.charName,
|
|
16385
|
+
charClass: partyRows.charClass,
|
|
16386
|
+
charLevel: partyRows.charLevel,
|
|
16387
|
+
id: partyRows.id
|
|
16388
|
+
});
|
|
16389
|
+
})));
|
|
16390
|
+
};
|
|
16391
|
+
var Wrapper$5 = /*#__PURE__*/styled.div.withConfig({
|
|
16392
|
+
displayName: "PartyManager__Wrapper",
|
|
16393
|
+
componentId: "sc-1yqcad8-0"
|
|
16394
|
+
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
16395
|
+
var RowsWrapper$2 = /*#__PURE__*/styled.div.withConfig({
|
|
16396
|
+
displayName: "PartyManager__RowsWrapper",
|
|
16397
|
+
componentId: "sc-1yqcad8-1"
|
|
16398
|
+
})(["width:100%;"]);
|
|
16399
|
+
var Title$6 = /*#__PURE__*/styled.h1.withConfig({
|
|
16400
|
+
displayName: "PartyManager__Title",
|
|
16401
|
+
componentId: "sc-1yqcad8-2"
|
|
16402
|
+
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
16403
|
+
|
|
16404
|
+
var mockedPartyRows = [{
|
|
16405
|
+
id: /*#__PURE__*/v4(),
|
|
16406
|
+
charName: 'CharNome',
|
|
16407
|
+
charClass: 'CharClass',
|
|
16408
|
+
charLevel: 1,
|
|
16409
|
+
playerQty: 3,
|
|
16410
|
+
isInvited: true,
|
|
16411
|
+
partyName: 'Party'
|
|
16412
|
+
}, {
|
|
16413
|
+
id: /*#__PURE__*/v4(),
|
|
16414
|
+
charName: 'CharNome',
|
|
16415
|
+
charClass: 'CharClass',
|
|
16416
|
+
charLevel: 1,
|
|
16417
|
+
playerQty: 3,
|
|
16418
|
+
isInvited: true,
|
|
16419
|
+
partyName: 'Party'
|
|
16420
|
+
}, {
|
|
16421
|
+
id: /*#__PURE__*/v4(),
|
|
16422
|
+
charName: 'CharNome',
|
|
16423
|
+
charClass: 'CharClass',
|
|
16424
|
+
charLevel: 1,
|
|
16425
|
+
playerQty: 3,
|
|
16426
|
+
isInvited: true,
|
|
16427
|
+
partyName: 'Party'
|
|
16428
|
+
}, {
|
|
16429
|
+
id: /*#__PURE__*/v4(),
|
|
16430
|
+
charName: 'CharNome',
|
|
16431
|
+
charClass: 'CharClass',
|
|
16432
|
+
charLevel: 1,
|
|
16433
|
+
playerQty: 3,
|
|
16434
|
+
isInvited: true,
|
|
16435
|
+
partyName: 'Party'
|
|
16436
|
+
}, {
|
|
16437
|
+
id: /*#__PURE__*/v4(),
|
|
16438
|
+
charName: 'CharNome',
|
|
16439
|
+
charClass: 'CharClass',
|
|
16440
|
+
charLevel: 1,
|
|
16441
|
+
playerQty: 3,
|
|
16442
|
+
isInvited: true,
|
|
16443
|
+
partyName: 'Party'
|
|
16444
|
+
}, {
|
|
16445
|
+
id: /*#__PURE__*/v4(),
|
|
16446
|
+
charName: 'CharNome',
|
|
16447
|
+
charClass: 'CharClass',
|
|
16448
|
+
charLevel: 1,
|
|
16449
|
+
playerQty: 3,
|
|
16450
|
+
isInvited: true,
|
|
16451
|
+
partyName: 'Party'
|
|
16452
|
+
}, {
|
|
16453
|
+
id: /*#__PURE__*/v4(),
|
|
16454
|
+
charName: 'CharNome',
|
|
16455
|
+
charClass: 'CharClass',
|
|
16456
|
+
charLevel: 1,
|
|
16457
|
+
playerQty: 3,
|
|
16458
|
+
isInvited: true,
|
|
16459
|
+
partyName: 'Party'
|
|
16460
|
+
}, {
|
|
16461
|
+
id: /*#__PURE__*/v4(),
|
|
16462
|
+
charName: 'CharNome',
|
|
16463
|
+
charClass: 'CharClass',
|
|
16464
|
+
charLevel: 1,
|
|
16465
|
+
playerQty: 3,
|
|
16466
|
+
isInvited: true,
|
|
16467
|
+
partyName: 'Party'
|
|
16468
|
+
}];
|
|
16469
|
+
var mockedPlayersRows = [{
|
|
16470
|
+
id: /*#__PURE__*/v4(),
|
|
16471
|
+
charName: 'CharNome',
|
|
16472
|
+
charClass: 'CharClass',
|
|
16473
|
+
charLevel: 1,
|
|
16474
|
+
isNotInvited: true
|
|
16475
|
+
}, {
|
|
16476
|
+
id: /*#__PURE__*/v4(),
|
|
16477
|
+
charName: 'CharNome',
|
|
16478
|
+
charClass: 'CharClass',
|
|
16479
|
+
charLevel: 1,
|
|
16480
|
+
isNotInvited: true
|
|
16481
|
+
}, {
|
|
16482
|
+
id: /*#__PURE__*/v4(),
|
|
16483
|
+
charName: 'CharNome',
|
|
16484
|
+
charClass: 'CharClass',
|
|
16485
|
+
charLevel: 1,
|
|
16486
|
+
isNotInvited: true
|
|
16487
|
+
}, {
|
|
16488
|
+
id: /*#__PURE__*/v4(),
|
|
16489
|
+
charName: 'CharNome',
|
|
16490
|
+
charClass: 'CharClass',
|
|
16491
|
+
charLevel: 1,
|
|
16492
|
+
isNotInvited: true
|
|
16493
|
+
}, {
|
|
16494
|
+
id: /*#__PURE__*/v4(),
|
|
16495
|
+
charName: 'CharNome',
|
|
16496
|
+
charClass: 'CharClass',
|
|
16497
|
+
charLevel: 1,
|
|
16498
|
+
isNotInvited: true
|
|
16499
|
+
}];
|
|
16500
|
+
var mockedPartyManager = [{
|
|
16501
|
+
id: /*#__PURE__*/v4(),
|
|
16502
|
+
charName: 'CharNome',
|
|
16503
|
+
charClass: 'CharClass',
|
|
16504
|
+
charLevel: 1
|
|
16505
|
+
}, {
|
|
16506
|
+
id: /*#__PURE__*/v4(),
|
|
16507
|
+
charName: 'CharNome',
|
|
16508
|
+
charClass: 'CharClass',
|
|
16509
|
+
charLevel: 1
|
|
16510
|
+
}, {
|
|
16511
|
+
id: /*#__PURE__*/v4(),
|
|
16512
|
+
charName: 'CharNome',
|
|
16513
|
+
charClass: 'CharClass',
|
|
16514
|
+
charLevel: 1
|
|
16515
|
+
}, {
|
|
16516
|
+
id: /*#__PURE__*/v4(),
|
|
16517
|
+
charName: 'CharNome',
|
|
16518
|
+
charClass: 'CharClass',
|
|
16519
|
+
charLevel: 1
|
|
16520
|
+
}, {
|
|
16521
|
+
id: /*#__PURE__*/v4(),
|
|
16522
|
+
charName: 'CharNome',
|
|
16523
|
+
charClass: 'CharClass',
|
|
16524
|
+
charLevel: 1
|
|
16525
|
+
}];
|
|
16526
|
+
|
|
16248
16527
|
var ProgressBar = function ProgressBar(_ref) {
|
|
16249
16528
|
var max = _ref.max,
|
|
16250
16529
|
value = _ref.value,
|
|
@@ -16351,7 +16630,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
16351
16630
|
onPointerDown: onRightClick
|
|
16352
16631
|
}), React.createElement(QuestContainer, null, React.createElement(TitleContainer$1, {
|
|
16353
16632
|
className: "drag-handler"
|
|
16354
|
-
}, React.createElement(Title$
|
|
16633
|
+
}, React.createElement(Title$7, null, React.createElement(Thumbnail, {
|
|
16355
16634
|
src: quests[currentIndex].thumbnail || img$8
|
|
16356
16635
|
}), quests[currentIndex].title), React.createElement(QuestSplitDiv, null, React.createElement("hr", {
|
|
16357
16636
|
className: "golden"
|
|
@@ -16370,7 +16649,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
16370
16649
|
}, button.title);
|
|
16371
16650
|
})))) : React.createElement(QuestsContainer, null, React.createElement(QuestContainer, null, React.createElement(TitleContainer$1, {
|
|
16372
16651
|
className: "drag-handler"
|
|
16373
|
-
}, React.createElement(Title$
|
|
16652
|
+
}, React.createElement(Title$7, null, React.createElement(Thumbnail, {
|
|
16374
16653
|
src: quests[0].thumbnail || img$8
|
|
16375
16654
|
}), quests[0].title), React.createElement(QuestSplitDiv, null, React.createElement("hr", {
|
|
16376
16655
|
className: "golden"
|
|
@@ -16417,7 +16696,7 @@ var TitleContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
16417
16696
|
displayName: "QuestInfo__TitleContainer",
|
|
16418
16697
|
componentId: "sc-15s2boc-6"
|
|
16419
16698
|
})(["width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin-top:1rem;"]);
|
|
16420
|
-
var Title$
|
|
16699
|
+
var Title$7 = /*#__PURE__*/styled.h1.withConfig({
|
|
16421
16700
|
displayName: "QuestInfo__Title",
|
|
16422
16701
|
componentId: "sc-15s2boc-7"
|
|
16423
16702
|
})(["color:white;z-index:22;font-size:", " !important;color:", " !important;"], uiFonts.size.medium, uiColors.yellow);
|
|
@@ -16441,7 +16720,7 @@ var QuestList = function QuestList(_ref) {
|
|
|
16441
16720
|
style: {
|
|
16442
16721
|
width: '100%'
|
|
16443
16722
|
}
|
|
16444
|
-
}, React.createElement(Title$
|
|
16723
|
+
}, React.createElement(Title$8, null, "Quests"), React.createElement("hr", {
|
|
16445
16724
|
className: "golden"
|
|
16446
16725
|
}), React.createElement(QuestListContainer, null, quests ? quests.map(function (quest, i) {
|
|
16447
16726
|
return React.createElement("div", {
|
|
@@ -16462,7 +16741,7 @@ var QuestDraggableContainer$1 = /*#__PURE__*/styled(DraggableContainer).withConf
|
|
|
16462
16741
|
displayName: "QuestList__QuestDraggableContainer",
|
|
16463
16742
|
componentId: "sc-1a2vx6q-0"
|
|
16464
16743
|
})([".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;}"]);
|
|
16465
|
-
var Title$
|
|
16744
|
+
var Title$8 = /*#__PURE__*/styled.h1.withConfig({
|
|
16466
16745
|
displayName: "QuestList__Title",
|
|
16467
16746
|
componentId: "sc-1a2vx6q-1"
|
|
16468
16747
|
})(["z-index:22;font-size:", " !important;color:yellow !important;"], uiFonts.size.medium);
|
|
@@ -16475,6 +16754,15 @@ var NoQuestContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
16475
16754
|
componentId: "sc-1a2vx6q-3"
|
|
16476
16755
|
})(["text-align:center;p{margin-top:5px;}"]);
|
|
16477
16756
|
|
|
16757
|
+
//@ts-ignore
|
|
16758
|
+
var _RPGUI = RPGUI;
|
|
16759
|
+
var RPGUIRoot = function RPGUIRoot(_ref) {
|
|
16760
|
+
var children = _ref.children;
|
|
16761
|
+
return React.createElement("div", {
|
|
16762
|
+
className: "rpgui-content"
|
|
16763
|
+
}, children);
|
|
16764
|
+
};
|
|
16765
|
+
|
|
16478
16766
|
var InputRadio$1 = function InputRadio(_ref) {
|
|
16479
16767
|
var name = _ref.name,
|
|
16480
16768
|
items = _ref.items,
|
|
@@ -16507,15 +16795,6 @@ var InputRadio$1 = function InputRadio(_ref) {
|
|
|
16507
16795
|
}));
|
|
16508
16796
|
};
|
|
16509
16797
|
|
|
16510
|
-
//@ts-ignore
|
|
16511
|
-
var _RPGUI = RPGUI;
|
|
16512
|
-
var RPGUIRoot = function RPGUIRoot(_ref) {
|
|
16513
|
-
var children = _ref.children;
|
|
16514
|
-
return React.createElement("div", {
|
|
16515
|
-
className: "rpgui-content"
|
|
16516
|
-
}, children);
|
|
16517
|
-
};
|
|
16518
|
-
|
|
16519
16798
|
var Shortcuts = function Shortcuts(_ref) {
|
|
16520
16799
|
var shortcuts = _ref.shortcuts,
|
|
16521
16800
|
onShortcutCast = _ref.onShortcutCast,
|
|
@@ -16684,13 +16963,15 @@ var SkillProgressBar = function SkillProgressBar(_ref) {
|
|
|
16684
16963
|
if (!skillPointsToNextLevel) {
|
|
16685
16964
|
skillPointsToNextLevel = getSPForLevel(level + 1);
|
|
16686
16965
|
}
|
|
16687
|
-
var skillsBuffsCalc = function skillsBuffsCalc() {
|
|
16688
|
-
|
|
16689
|
-
|
|
16966
|
+
var skillsBuffsCalc = function skillsBuffsCalc(level, buffAndDebuff) {
|
|
16967
|
+
var result = level * (buffAndDebuff / 100);
|
|
16968
|
+
if (result > 0) {
|
|
16969
|
+
return "+" + result.toFixed(2);
|
|
16970
|
+
} else {
|
|
16971
|
+
return "" + result.toFixed(2);
|
|
16690
16972
|
}
|
|
16691
|
-
return;
|
|
16692
16973
|
};
|
|
16693
|
-
return React.createElement(React.Fragment, null, React.createElement(ProgressTitle, null, buffAndDebuff !== undefined && React.createElement(React.Fragment, null, buffAndDebuff > 0 ? React.createElement(BuffAndDebuffContainer, null, React.createElement(TitleNameContainer, null, React.createElement(TitleNameBuff, null, skillName), React.createElement(TitleNameBuff, null, "lv ", level, " (", skillsBuffsCalc(), ")")), React.createElement(TitleNameBuffContainer, null, React.createElement(TitleNameBuff, null, "(+", buffAndDebuff, "%)"))) : buffAndDebuff < 0 ? React.createElement(React.Fragment, null, React.createElement(TitleNameContainer, null, React.createElement(TitleNameDebuff, null, skillName), React.createElement(TitleNameDebuff, null, "lv ", level, " (", skillsBuffsCalc(), ")")), React.createElement("div", null, React.createElement(TitleNameDebuff, null, "(", buffAndDebuff, "%)"))) : React.createElement(TitleName, null, skillName)), !buffAndDebuff && React.createElement(TitleNameContainer, null, React.createElement(TitleName, null, skillName), React.createElement(ValueDisplay, null, "lv ", level))), React.createElement(ProgressBody, null, React.createElement(ProgressIconContainer, null, atlasIMG && atlasJSON ? React.createElement(SpriteContainer$1, null, React.createElement(ErrorBoundary, null, React.createElement(SpriteFromAtlas, {
|
|
16974
|
+
return React.createElement(React.Fragment, null, React.createElement(ProgressTitle, null, buffAndDebuff !== undefined && React.createElement(React.Fragment, null, buffAndDebuff > 0 ? React.createElement(BuffAndDebuffContainer, null, React.createElement(TitleNameContainer, null, React.createElement(TitleNameBuff, null, skillName), React.createElement(TitleNameBuff, null, "lv ", level, " (", skillsBuffsCalc(level, buffAndDebuff), ")")), React.createElement(TitleNameBuffContainer, null, React.createElement(TitleNameBuff, null, "(+", buffAndDebuff, "%)"))) : buffAndDebuff < 0 ? React.createElement(React.Fragment, null, React.createElement(TitleNameContainer, null, React.createElement(TitleNameDebuff, null, skillName), React.createElement(TitleNameDebuff, null, "lv ", level, " (", skillsBuffsCalc(level, buffAndDebuff), ")")), React.createElement("div", null, React.createElement(TitleNameDebuff, null, "(", buffAndDebuff, "%)"))) : React.createElement(TitleName, null, skillName)), !buffAndDebuff && React.createElement(TitleNameContainer, null, React.createElement(TitleName, null, skillName), React.createElement(ValueDisplay, null, "lv ", level))), React.createElement(ProgressBody, null, React.createElement(ProgressIconContainer, null, atlasIMG && atlasJSON ? React.createElement(SpriteContainer$1, null, React.createElement(ErrorBoundary, null, React.createElement(SpriteFromAtlas, {
|
|
16694
16975
|
atlasIMG: atlasIMG,
|
|
16695
16976
|
atlasJSON: atlasJSON,
|
|
16696
16977
|
spriteKey: texturePath,
|
|
@@ -16932,7 +17213,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
16932
17213
|
castingType = spell.castingType,
|
|
16933
17214
|
cooldown = spell.cooldown,
|
|
16934
17215
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
16935
|
-
return React.createElement(Container$o, null, React.createElement(Header$1, null, React.createElement("div", null, React.createElement(Title$
|
|
17216
|
+
return React.createElement(Container$o, null, React.createElement(Header$1, null, React.createElement("div", null, React.createElement(Title$9, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
|
|
16936
17217
|
className: "label"
|
|
16937
17218
|
}, "Casting Type:"), React.createElement("div", {
|
|
16938
17219
|
className: "value"
|
|
@@ -16962,7 +17243,7 @@ var Container$o = /*#__PURE__*/styled.div.withConfig({
|
|
|
16962
17243
|
displayName: "SpellInfo__Container",
|
|
16963
17244
|
componentId: "sc-4hbw3q-0"
|
|
16964
17245
|
})(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;font-size:", ";border:3px solid ", ";height:max-content;width:30rem;@media (max-width:580px){width:80vw;}"], uiFonts.size.small, uiColors.lightGray);
|
|
16965
|
-
var Title$
|
|
17246
|
+
var Title$9 = /*#__PURE__*/styled.div.withConfig({
|
|
16966
17247
|
displayName: "SpellInfo__Title",
|
|
16967
17248
|
componentId: "sc-4hbw3q-1"
|
|
16968
17249
|
})(["font-size:", ";font-weight:bold;margin-bottom:0.5rem;display:flex;align-items:center;margin:0;"], uiFonts.size.medium);
|
|
@@ -17144,7 +17425,7 @@ var Spell = function Spell(_ref) {
|
|
|
17144
17425
|
className: "cooldown"
|
|
17145
17426
|
}, activeCooldown.toFixed(activeCooldown > 10 ? 0 : 1)) : null, magicWords.split(' ').map(function (word) {
|
|
17146
17427
|
return word[0];
|
|
17147
|
-
})), React.createElement(Info, null, React.createElement(Title$
|
|
17428
|
+
})), React.createElement(Info, null, React.createElement(Title$a, null, React.createElement("span", null, name), React.createElement("span", {
|
|
17148
17429
|
className: "spell"
|
|
17149
17430
|
}, "(", magicWords, ")")), React.createElement(Description$2, null, description)), React.createElement(Divider, null), React.createElement(Cost, null, React.createElement("span", null, "Mana cost:"), React.createElement("span", {
|
|
17150
17431
|
className: "mana"
|
|
@@ -17165,7 +17446,7 @@ var Info = /*#__PURE__*/styled.span.withConfig({
|
|
|
17165
17446
|
displayName: "Spell__Info",
|
|
17166
17447
|
componentId: "sc-j96fa2-2"
|
|
17167
17448
|
})(["width:0;flex:1;@media (orientation:portrait){display:none;}"]);
|
|
17168
|
-
var Title$
|
|
17449
|
+
var Title$a = /*#__PURE__*/styled.p.withConfig({
|
|
17169
17450
|
displayName: "Spell__Title",
|
|
17170
17451
|
componentId: "sc-j96fa2-3"
|
|
17171
17452
|
})(["display:flex;flex-wrap:wrap;align-items:center;margin-bottom:5px;margin:0;span{font-size:", " !important;font-weight:bold !important;color:", " !important;margin-right:0.5rem;}.spell{font-size:", " !important;font-weight:normal !important;color:", " !important;}"], uiFonts.size.medium, uiColors.yellow, uiFonts.size.small, uiColors.lightGray);
|
|
@@ -17227,7 +17508,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
17227
17508
|
height: "inherit",
|
|
17228
17509
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
17229
17510
|
scale: scale
|
|
17230
|
-
}, React.createElement(Container$s, null, React.createElement(Title$
|
|
17511
|
+
}, React.createElement(Container$s, null, React.createElement(Title$b, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
|
|
17231
17512
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
17232
17513
|
settingShortcutIndex: settingShortcutIndex,
|
|
17233
17514
|
shortcuts: shortcuts,
|
|
@@ -17257,7 +17538,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
17257
17538
|
}, spell)));
|
|
17258
17539
|
}))));
|
|
17259
17540
|
};
|
|
17260
|
-
var Title$
|
|
17541
|
+
var Title$b = /*#__PURE__*/styled.h1.withConfig({
|
|
17261
17542
|
displayName: "Spellbook__Title",
|
|
17262
17543
|
componentId: "sc-r02nfq-0"
|
|
17263
17544
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
@@ -17498,7 +17779,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
17498
17779
|
style: {
|
|
17499
17780
|
width: '100%'
|
|
17500
17781
|
}
|
|
17501
|
-
}, React.createElement(Title$
|
|
17782
|
+
}, React.createElement(Title$c, null, Capitalize(type), " Menu"), React.createElement("hr", {
|
|
17502
17783
|
className: "golden"
|
|
17503
17784
|
})), React.createElement(TradingComponentScrollWrapper, {
|
|
17504
17785
|
id: "TraderContainer"
|
|
@@ -17528,7 +17809,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
17528
17809
|
}
|
|
17529
17810
|
}, "Cancel"))));
|
|
17530
17811
|
};
|
|
17531
|
-
var Title$
|
|
17812
|
+
var Title$c = /*#__PURE__*/styled.h1.withConfig({
|
|
17532
17813
|
displayName: "TradingMenu__Title",
|
|
17533
17814
|
componentId: "sc-1wjsz1l-0"
|
|
17534
17815
|
})(["z-index:22;font-size:0.6rem;color:yellow !important;"]);
|
|
@@ -17573,5 +17854,91 @@ var Container$t = /*#__PURE__*/styled.div.withConfig({
|
|
|
17573
17854
|
return props.maxLines;
|
|
17574
17855
|
});
|
|
17575
17856
|
|
|
17576
|
-
|
|
17857
|
+
var ItemSelector = function ItemSelector(_ref) {
|
|
17858
|
+
var atlasIMG = _ref.atlasIMG,
|
|
17859
|
+
atlasJSON = _ref.atlasJSON,
|
|
17860
|
+
options = _ref.options,
|
|
17861
|
+
onClose = _ref.onClose,
|
|
17862
|
+
onSelect = _ref.onSelect;
|
|
17863
|
+
var _useState = useState(),
|
|
17864
|
+
selectedValue = _useState[0],
|
|
17865
|
+
setSelectedValue = _useState[1];
|
|
17866
|
+
var handleClick = function handleClick() {
|
|
17867
|
+
var element = document.querySelector("input[name='test']:checked");
|
|
17868
|
+
var elementValue = element.value;
|
|
17869
|
+
setSelectedValue(elementValue);
|
|
17870
|
+
};
|
|
17871
|
+
useEffect(function () {
|
|
17872
|
+
if (selectedValue) {
|
|
17873
|
+
onSelect(selectedValue);
|
|
17874
|
+
}
|
|
17875
|
+
}, [selectedValue]);
|
|
17876
|
+
return React.createElement(DraggableContainer, {
|
|
17877
|
+
type: RPGUIContainerTypes.Framed,
|
|
17878
|
+
width: "500px",
|
|
17879
|
+
cancelDrag: ".equipment-container-body .arrow-selector",
|
|
17880
|
+
onCloseButton: function onCloseButton() {
|
|
17881
|
+
if (onClose) {
|
|
17882
|
+
onClose();
|
|
17883
|
+
}
|
|
17884
|
+
}
|
|
17885
|
+
}, React.createElement("div", {
|
|
17886
|
+
style: {
|
|
17887
|
+
width: '100%'
|
|
17888
|
+
}
|
|
17889
|
+
}, React.createElement(Title$d, null, 'Harvesting instruments'), React.createElement(Subtitle$1, null, 'Use the tool, you need it'), React.createElement("hr", {
|
|
17890
|
+
className: "golden"
|
|
17891
|
+
})), React.createElement(RadioInputScroller$1, null, options == null ? void 0 : options.map(function (option, index) {
|
|
17892
|
+
return React.createElement(RadioOptionsWrapper$1, {
|
|
17893
|
+
key: index
|
|
17894
|
+
}, React.createElement(SpriteAtlasWrapper$1, null, React.createElement(SpriteFromAtlas, {
|
|
17895
|
+
atlasIMG: atlasIMG,
|
|
17896
|
+
atlasJSON: atlasJSON,
|
|
17897
|
+
spriteKey: option.imageKey,
|
|
17898
|
+
imgScale: 3
|
|
17899
|
+
})), React.createElement("div", null, React.createElement("input", {
|
|
17900
|
+
className: "rpgui-radio",
|
|
17901
|
+
type: "radio",
|
|
17902
|
+
value: option.name,
|
|
17903
|
+
name: "test"
|
|
17904
|
+
}), React.createElement("label", {
|
|
17905
|
+
onPointerDown: handleClick,
|
|
17906
|
+
style: {
|
|
17907
|
+
display: 'flex',
|
|
17908
|
+
alignItems: 'center'
|
|
17909
|
+
}
|
|
17910
|
+
}, option.name, " ", React.createElement("br", null), option.description)));
|
|
17911
|
+
})), React.createElement(ButtonWrapper$3, null, React.createElement(Button, {
|
|
17912
|
+
buttonType: ButtonTypes.RPGUIButton,
|
|
17913
|
+
onPointerDown: onClose
|
|
17914
|
+
}, "Cancel"), React.createElement(Button, {
|
|
17915
|
+
buttonType: ButtonTypes.RPGUIButton
|
|
17916
|
+
}, "Select")));
|
|
17917
|
+
};
|
|
17918
|
+
var Title$d = /*#__PURE__*/styled.h1.withConfig({
|
|
17919
|
+
displayName: "ItemSelector__Title",
|
|
17920
|
+
componentId: "sc-gptoxp-0"
|
|
17921
|
+
})(["font-size:0.6rem;color:yellow !important;"]);
|
|
17922
|
+
var Subtitle$1 = /*#__PURE__*/styled.h1.withConfig({
|
|
17923
|
+
displayName: "ItemSelector__Subtitle",
|
|
17924
|
+
componentId: "sc-gptoxp-1"
|
|
17925
|
+
})(["font-size:0.4rem;color:yellow !important;"]);
|
|
17926
|
+
var RadioInputScroller$1 = /*#__PURE__*/styled.div.withConfig({
|
|
17927
|
+
displayName: "ItemSelector__RadioInputScroller",
|
|
17928
|
+
componentId: "sc-gptoxp-2"
|
|
17929
|
+
})(["padding-left:15px;padding-top:10px;width:100%;margin-top:1rem;align-items:center;margin-left:20px;align-items:flex-start;overflow-y:scroll;height:360px;"]);
|
|
17930
|
+
var SpriteAtlasWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
17931
|
+
displayName: "ItemSelector__SpriteAtlasWrapper",
|
|
17932
|
+
componentId: "sc-gptoxp-3"
|
|
17933
|
+
})(["margin-right:40px;"]);
|
|
17934
|
+
var RadioOptionsWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
17935
|
+
displayName: "ItemSelector__RadioOptionsWrapper",
|
|
17936
|
+
componentId: "sc-gptoxp-4"
|
|
17937
|
+
})(["display:flex;align-items:stretch;margin-bottom:40px;"]);
|
|
17938
|
+
var ButtonWrapper$3 = /*#__PURE__*/styled.div.withConfig({
|
|
17939
|
+
displayName: "ItemSelector__ButtonWrapper",
|
|
17940
|
+
componentId: "sc-gptoxp-5"
|
|
17941
|
+
})(["display:flex;justify-content:space-around;padding-top:20px;width:100%;"]);
|
|
17942
|
+
|
|
17943
|
+
export { Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, CheckButton, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, HistoryDialog, ImgSide, Input, InputRadio$1 as InputRadio, ItemContainer$1 as ItemContainer, ItemSelector, ItemSlot, ListMenu, Marketplace, MarketplaceRows, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, Shortcuts, SkillProgressBar, SkillsContainer, Spellbook, SpriteFromAtlas, TextArea, TimeWidget, TradingMenu, Truncate, _RPGUI, mockedPartyManager, mockedPartyRows, mockedPlayersRows, rarityColor, useEventListener };
|
|
17577
17944
|
//# sourceMappingURL=long-bow.esm.js.map
|