AR WORKS, some bugs present...
This commit is contained in:
1 parent
f12fc75adc
commit
c56377406b
6 files changed
+3249
-725
No files matched your search
@@ -1,16 +1,17 @@
|
||||
"use client";
|
||||
|
||||
import { useMemo, useState } from "react";
|
||||
import { useState } from "react";
|
||||
import OldButton from "../OldButton";
|
||||
import styles from "@/css/RiddleStyles.module.css";
|
||||
import { useLocalStorage } from "@/hooks/useLocalStorage";
|
||||
import { PREF } from "@/utils/const";
|
||||
import { RiddleScreenControls } from "../RiddleScreen";
|
||||
import { addPoints } from "@/utils/points";
|
||||
import RiddleCompleteBanner from "../RiddleCompleteBanner";
|
||||
import { getPlayers } from "@/utils/players";
|
||||
import SelectionButton from "../SelectionButton";
|
||||
import extraStyles from "@/components/riddles-css/Riddle_7.module.css";
|
||||
import dynamic from 'next/dynamic';
|
||||
|
||||
const Riddle_7_AR_View = dynamic(
|
||||
() => import('../Riddle_7_AR_View'),
|
||||
{ ssr: false }
|
||||
);
|
||||
|
||||
export default function Riddle_7({
|
||||
page,
|
||||
@@ -48,11 +49,13 @@ export default function Riddle_7({
|
||||
<p>Öffnet zusätzlich den Umschlag mit dem Beweismaterial und untersucht dessen Inhalt sorgfältig.</p>
|
||||
<p>Vergleicht Aussagen, Spuren und Beweise miteinander.</p>
|
||||
<div style={{width: "100%", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center"}}>
|
||||
<OldButton red={false} onAction={() => setPage(2)} disabled={false}>WEITER</OldButton>
|
||||
<OldButton red={false} onAction={() => {
|
||||
setPage(2);
|
||||
showBanner(false);
|
||||
}} disabled={false}>WEITER</OldButton>
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles["buttons"]}>
|
||||
|
||||
<OldButton red={true} onAction={() => setPage(0)}>ZURÜCK</OldButton>
|
||||
</div>
|
||||
</div>
|
||||
@@ -60,7 +63,7 @@ export default function Riddle_7({
|
||||
(
|
||||
<div key={2}>
|
||||
<div className={styles["content"]}>
|
||||
{ /* CAM */ }
|
||||
<Riddle_7_AR_View />
|
||||
</div>
|
||||
<div className={styles["buttons"]}>
|
||||
<OldButton red={false} disabled={false} onAction={() => setPage(3)}>URTEIL SPRECHEN</OldButton>
|
||||
@@ -88,7 +91,10 @@ export default function Riddle_7({
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles["buttons"]}>
|
||||
<OldButton red={true} disabled={false} onAction={() => setPage(1)}>ZURÜCK</OldButton>
|
||||
<OldButton red={true} disabled={false} onAction={() => {
|
||||
setPage(1);
|
||||
showBanner(true);
|
||||
}}>ZURÜCK</OldButton>
|
||||
</div>
|
||||
</div>
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user