Small changes like TooFar PopUp

This commit is contained in:
LionTion committed 2026-10-16 12:46:51 +02:00
1 parent 62cbffdd3f
commit 70fb9e4850
4 files changed
+27 -7

No files matched your search

+3 -2
View File
@@ -13,6 +13,7 @@ import VoiceOver from "../VoiceOver";
import RiddleHintPage from "../RiddleHintPage";
import { Player } from "@/types/player";
import { addCompletedRiddle } from "@/utils/completedRiddles";
import ChargedButton from "../ChargedButton";
export type ConnectionStatus = "disconnected" | "connected" | "connecting";
@@ -262,7 +263,7 @@ export default function Riddle_2({
</div>
</div>
<div className={styles["buttons"]}>
<OldButton red={false} onAction={() => {
<ChargedButton red={false} onAction={() => {
if (playerIndex >= players.length-1) {
setPage(2);
addPoints(riddle.points);
@@ -280,7 +281,7 @@ export default function Riddle_2({
setCanGoNext(false);
setPlayerIndex(playerIndex+1);
}
}} disabled={!canGoNext}>{(playerIndex >= players.length-1) ? "PRÜFUNG BEENDEN" : "NÄCHSTER PRÜFLING"}</OldButton>
}} disabled={!canGoNext}>{(playerIndex >= players.length-1) ? "PRÜFUNG BEENDEN" : "NÄCHSTER PRÜFLING"}</ChargedButton>
{playerIndex < 1 ? <OldButton red={true} onAction={() => setPage(0)} className={styles["backButton"]}>ZURÜCK</OldButton> : null}
</div>
</div>