@rpg-engine/long-bow 0.5.92 → 0.5.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/long-bow.cjs.development.js +12 -6
- 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 +12 -6
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NPCDialog/NPCDialog.tsx +10 -0
- package/src/components/TradingMenu/TradingMenu.tsx +2 -2
- package/src/components/typography/DynamicText.tsx +1 -1
- package/src/stories/NPCDialog.stories.tsx +1 -1
|
@@ -15468,7 +15468,7 @@ var DynamicText = function DynamicText(_ref) {
|
|
|
15468
15468
|
onFinish();
|
|
15469
15469
|
}
|
|
15470
15470
|
}
|
|
15471
|
-
},
|
|
15471
|
+
}, 25);
|
|
15472
15472
|
return function () {
|
|
15473
15473
|
clearInterval(interval);
|
|
15474
15474
|
};
|
|
@@ -15772,7 +15772,9 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
15772
15772
|
}
|
|
15773
15773
|
})), type === exports.NPCDialogType.TextAndThumbnail && React__default.createElement(ThumbnailContainer, null, React__default.createElement(NPCThumbnail, {
|
|
15774
15774
|
src: imagePath || img$7
|
|
15775
|
-
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$i, null, React__default.createElement(
|
|
15775
|
+
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$i, null, React__default.createElement(CloseIcon, {
|
|
15776
|
+
onPointerDown: _onClose
|
|
15777
|
+
}, "X"), React__default.createElement(TextContainer$1, {
|
|
15776
15778
|
flex: type === exports.NPCDialogType.TextAndThumbnail ? '70%' : '100%'
|
|
15777
15779
|
}, React__default.createElement(NPCDialogText, {
|
|
15778
15780
|
type: type,
|
|
@@ -15790,20 +15792,24 @@ var Container$i = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
15790
15792
|
displayName: "NPCDialog__Container",
|
|
15791
15793
|
componentId: "sc-1b4aw74-0"
|
|
15792
15794
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
15795
|
+
var CloseIcon = /*#__PURE__*/styled__default.p.withConfig({
|
|
15796
|
+
displayName: "NPCDialog__CloseIcon",
|
|
15797
|
+
componentId: "sc-1b4aw74-1"
|
|
15798
|
+
})(["position:absolute;top:-1.5rem;right:-0.4rem;cursor:pointer;color:white;font-size:1.1rem !important;"]);
|
|
15793
15799
|
var TextContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
15794
15800
|
displayName: "NPCDialog__TextContainer",
|
|
15795
|
-
componentId: "sc-1b4aw74-
|
|
15801
|
+
componentId: "sc-1b4aw74-2"
|
|
15796
15802
|
})(["flex:", " 0 0;width:355px;"], function (_ref2) {
|
|
15797
15803
|
var flex = _ref2.flex;
|
|
15798
15804
|
return flex;
|
|
15799
15805
|
});
|
|
15800
15806
|
var ThumbnailContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
15801
15807
|
displayName: "NPCDialog__ThumbnailContainer",
|
|
15802
|
-
componentId: "sc-1b4aw74-
|
|
15808
|
+
componentId: "sc-1b4aw74-3"
|
|
15803
15809
|
})(["flex:30% 0 0;display:flex;justify-content:flex-end;"]);
|
|
15804
15810
|
var NPCThumbnail = /*#__PURE__*/styled__default.img.withConfig({
|
|
15805
15811
|
displayName: "NPCDialog__NPCThumbnail",
|
|
15806
|
-
componentId: "sc-1b4aw74-
|
|
15812
|
+
componentId: "sc-1b4aw74-4"
|
|
15807
15813
|
})(["image-rendering:pixelated;height:128px;width:128px;"]);
|
|
15808
15814
|
|
|
15809
15815
|
(function (ImgSide) {
|
|
@@ -19246,7 +19252,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
19246
19252
|
scale: scale,
|
|
19247
19253
|
isBuy: isBuy()
|
|
19248
19254
|
}));
|
|
19249
|
-
})), React__default.createElement(GoldWrapper, null, React__default.createElement("p", null, "Available Gold:"), React__default.createElement("p", null, "$", characterAvailableGold)), React__default.createElement(TotalWrapper, null, React__default.createElement("p", null, "Total:"), React__default.createElement("p", null, "$", sum)), !hasGoldForSale() ? React__default.createElement(AlertWrapper, null, React__default.createElement("p", null, " Sorry, not enough money.")) : React__default.createElement(GoldWrapper, null, React__default.createElement("p", null, "Final Gold:"), React__default.createElement("p", null, "$", getFinalGold())), React__default.createElement(ButtonWrapper$2, null, React__default.createElement(Button, {
|
|
19255
|
+
})), React__default.createElement(GoldWrapper, null, React__default.createElement("p", null, "Available Gold:"), React__default.createElement("p", null, "$", characterAvailableGold.toFixed(2))), React__default.createElement(TotalWrapper, null, React__default.createElement("p", null, "Total:"), React__default.createElement("p", null, "$", sum)), !hasGoldForSale() ? React__default.createElement(AlertWrapper, null, React__default.createElement("p", null, " Sorry, not enough money.")) : React__default.createElement(GoldWrapper, null, React__default.createElement("p", null, "Final Gold:"), React__default.createElement("p", null, "$", getFinalGold().toFixed(2))), React__default.createElement(ButtonWrapper$2, null, React__default.createElement(Button, {
|
|
19250
19256
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
19251
19257
|
disabled: !hasGoldForSale(),
|
|
19252
19258
|
onPointerDown: function onPointerDown() {
|