@rpg-engine/long-bow 0.8.202 → 0.8.203

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.8.202",
3
+ "version": "0.8.203",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -18,10 +18,11 @@ export interface ITutorialStepperProps {
18
18
  onLessonFinish: () => void;
19
19
  onStepChange?: (stepIndex: number) => void;
20
20
  imageStyle?: CSSProperties;
21
+ isTranslated?: boolean;
21
22
  }
22
23
 
23
24
  export const TutorialStepper = React.memo(
24
- ({ lessons, onLessonFinish, onStepChange, imageStyle }: ITutorialStepperProps) => {
25
+ ({ lessons, onLessonFinish, onStepChange, imageStyle, isTranslated = false }: ITutorialStepperProps) => {
25
26
  const generateLessons = useMemo(
26
27
  () =>
27
28
  lessons.map((lesson, index) => ({
@@ -58,13 +59,17 @@ export const TutorialStepper = React.memo(
58
59
  dangerouslySetInnerHTML={{ __html: lesson.body as string }}
59
60
  ></LessonBody>
60
61
  )}
61
- {lesson.text && <DynamicText text={lesson.text} />}
62
+ {lesson.text && (
63
+ isTranslated
64
+ ? <LessonText>{lesson.text}</LessonText>
65
+ : <DynamicText text={lesson.text} />
66
+ )}
62
67
  </LessonFooter>
63
68
  </LessonContainer>
64
69
  ),
65
70
  id: index,
66
71
  })),
67
- [lessons, imageStyle]
72
+ [lessons, imageStyle, isTranslated]
68
73
  );
69
74
 
70
75
  return (
@@ -93,6 +98,14 @@ const LessonImageWrapper = styled.div`
93
98
 
94
99
  const LessonBody = styled.div``;
95
100
 
101
+ const LessonText = styled.p`
102
+ font-size: 0.7rem !important;
103
+ color: white;
104
+ text-shadow: 1px 1px 0px #000000;
105
+ letter-spacing: 1.2px;
106
+ word-break: normal;
107
+ `;
108
+
96
109
  const Container = styled.div`
97
110
  width: 80%;
98
111
  max-width: 600px;