From d68b2ecbcbd4a37b010e680e3aba37ea08735aa1 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Mon, 9 Dec 2024 23:24:37 +0100 Subject: [PATCH] Show winnable in X status --- qml/ScoreBar.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qml/ScoreBar.qml b/qml/ScoreBar.qml index 574a537..597bf2d 100644 --- a/qml/ScoreBar.qml +++ b/qml/ScoreBar.qml @@ -111,10 +111,17 @@ Rectangle { } ScoreItem { - visible: GameState.gameWon === false && GameState.preliminaryWin === false && GameState.isWinnable.winnable !== false + visible: GameState.gameWon === false && GameState.preliminaryWin === false && GameState.isWinnable.winnable === undefined title: "PLAYING" anchors.fill: parent } + + ScoreItem { + visible: GameState.gameWon === false && GameState.preliminaryWin === false && GameState.isWinnable.winnable === true + title: "WINNABLE IN " + GameState.isWinnable.depth + titleColor: "blue" + anchors.fill: parent + } } component ScoreItem: Column {