Commit c899ab2a authored by hewenhao's avatar hewenhao

feat: 优化引导UI

parent 9ba1f079
......@@ -57,6 +57,17 @@
color: #FFFFFF;
line-height: 50px;
white-space: nowrap;
&.place_0 {
margin-left: -200px;
}
&.place_1 {
margin-left: -390px;
}
&.place_2 {
margin-left: 0;
}
.em {
font-size: 48px;
font-weight: 600;
......
......@@ -154,10 +154,14 @@ const StageComp = (props: StageProps) => {
const updateGuideState = useStoreActions(state => state.guideModel.updateState)
const isPkGuideShow = useMemo(() => {
const force = pkGuideStep === 2 && pkGuideActive && stage.$stageIndex === 1
if (force) {
return force
}
if (stage.$lastPassedStage) {
return showPkGuideFromHis
}
return pkGuideStep === 2 && pkGuideActive && stage.$stageIndex === 1
}, [pkGuideActive, pkGuideStep, stage, showPkGuideFromHis])
const handleClick = () => {
......@@ -235,7 +239,7 @@ const StageComp = (props: StageProps) => {
guideContent={(
<View className={styles.pk_guide}>
<Image src={assetsGuide['longpress.png'].u} className={styles.pk_guide_finger}></Image>
<View className={styles.pk_guide_text}><Text className={styles.em}>长按</Text>已通关的关卡,启动PK模式~</View>
<View className={classNames(styles.pk_guide_text, styles[`place_${stage.index % 3}`])}><Text className={styles.em}>长按</Text>已通关的关卡,启动PK模式~</View>
</View>
)}
>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment