@rpg-engine/long-bow 0.2.10 → 0.2.12
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 +14 -5
- 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 +14 -5
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/PropertySelect/PropertySelect.tsx +9 -2
- package/src/components/QuestInfo/QuestInfo.tsx +13 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpg-engine/long-bow",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"@rollup/plugin-image": "^2.1.1",
|
|
86
|
-
"@rpg-engine/shared": "^0.4.
|
|
86
|
+
"@rpg-engine/shared": "^0.4.42",
|
|
87
87
|
"dayjs": "^1.11.2",
|
|
88
88
|
"fs-extra": "^10.1.0",
|
|
89
89
|
"lodash": "^4.17.21",
|
|
@@ -37,6 +37,10 @@ export const PropertySelect: React.FC<IPropertySelectProps> = ({
|
|
|
37
37
|
onChange(availableProperties[currentIndex]);
|
|
38
38
|
}, [currentIndex]);
|
|
39
39
|
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
setCurrentIndex(0);
|
|
42
|
+
}, [availableProperties]);
|
|
43
|
+
|
|
40
44
|
const getCurrentSelectionName = () => {
|
|
41
45
|
const item = availableProperties[currentIndex];
|
|
42
46
|
if (item) {
|
|
@@ -51,8 +55,11 @@ export const PropertySelect: React.FC<IPropertySelectProps> = ({
|
|
|
51
55
|
<Item>{getCurrentSelectionName()}</Item>
|
|
52
56
|
</TextOverlay>
|
|
53
57
|
<div className="rpgui-progress-track"></div>
|
|
54
|
-
<LeftArrow onClick={onLeftClick}></LeftArrow>
|
|
55
|
-
<RightArrow
|
|
58
|
+
<LeftArrow onClick={onLeftClick} onTouchStart={onLeftClick}></LeftArrow>
|
|
59
|
+
<RightArrow
|
|
60
|
+
onClick={onRightClick}
|
|
61
|
+
onTouchStart={onRightClick}
|
|
62
|
+
></RightArrow>
|
|
56
63
|
</Container>
|
|
57
64
|
);
|
|
58
65
|
};
|
|
@@ -55,13 +55,23 @@ export const QuestInfo: React.FC<IQuestInfoProps> = ({
|
|
|
55
55
|
if (onClose) onClose();
|
|
56
56
|
}}
|
|
57
57
|
width="730px"
|
|
58
|
-
cancelDrag=".equipment-container-body"
|
|
58
|
+
cancelDrag=".equipment-container-body .arrow-selector"
|
|
59
59
|
>
|
|
60
60
|
{quests.length >= 2 ? (
|
|
61
61
|
<QuestsContainer>
|
|
62
|
-
{currentIndex !== 0 &&
|
|
62
|
+
{currentIndex !== 0 && (
|
|
63
|
+
<LeftArrow
|
|
64
|
+
className="arrow-selector"
|
|
65
|
+
onClick={onLeftClick}
|
|
66
|
+
onTouchStart={onLeftClick}
|
|
67
|
+
></LeftArrow>
|
|
68
|
+
)}
|
|
63
69
|
{currentIndex !== quests.length - 1 && (
|
|
64
|
-
<RightArrow
|
|
70
|
+
<RightArrow
|
|
71
|
+
className="arrow-selector"
|
|
72
|
+
onClick={onRightClick}
|
|
73
|
+
onTouchStart={onRightClick}
|
|
74
|
+
></RightArrow>
|
|
65
75
|
)}
|
|
66
76
|
|
|
67
77
|
<QuestContainer>
|