mirror of
https://github.com/QuasarApp/Hanoi-Towers.git
synced 2025-05-06 22:49:34 +00:00
commit
3669a88901
@ -10,7 +10,7 @@ import QtQuick 2.15
|
|||||||
import QtQuick.Controls 2.15
|
import QtQuick.Controls 2.15
|
||||||
import QtQuick.Dialogs 1.3
|
import QtQuick.Dialogs 1.3
|
||||||
import QtQuick.Layouts 1.15
|
import QtQuick.Layouts 1.15
|
||||||
|
import QtMultimedia 5.15
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
visible: true
|
visible: true
|
||||||
@ -124,6 +124,8 @@ Item {
|
|||||||
|
|
||||||
function trigered(obj) {
|
function trigered(obj) {
|
||||||
|
|
||||||
|
clickSound.play()
|
||||||
|
|
||||||
stateWidget.tumbler.visible = false;
|
stateWidget.tumbler.visible = false;
|
||||||
let objectPlate = null;
|
let objectPlate = null;
|
||||||
if (upPlate) {
|
if (upPlate) {
|
||||||
@ -247,4 +249,8 @@ Item {
|
|||||||
id: help
|
id: help
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SoundEffect {
|
||||||
|
id: clickSound
|
||||||
|
source: "qrc:/sound/blockSound"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -149,38 +149,38 @@
|
|||||||
<translation type="vanished">Minimum steps for this lvl: %1</translation>
|
<translation type="vanished">Minimum steps for this lvl: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="167"/>
|
<location filename="../Game.qml" line="169"/>
|
||||||
<location filename="../Game.qml" line="187"/>
|
<location filename="../Game.qml" line="189"/>
|
||||||
<source>Congratulations! You have passed the level %0</source>
|
<source>Congratulations! You have passed the level %0</source>
|
||||||
<translation>Congratulations! You have passed the level %0</translation>
|
<translation>Congratulations! You have passed the level %0</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="170"/>
|
<location filename="../Game.qml" line="172"/>
|
||||||
<source>You got <b>%0</b> points for this level and unlocked the level <b>%1</b>!</source>
|
<source>You got <b>%0</b> points for this level and unlocked the level <b>%1</b>!</source>
|
||||||
<translation>You got <b>%0</b> points for this level and unlocked the level <b>%1</b>!</translation>
|
<translation>You got <b>%0</b> points for this level and unlocked the level <b>%1</b>!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="171"/>
|
<location filename="../Game.qml" line="173"/>
|
||||||
<source><br><br> Totally <b>%2</b> steps.</source>
|
<source><br><br> Totally <b>%2</b> steps.</source>
|
||||||
<translation><br><br> Totally <b>%2</b> steps.</translation>
|
<translation><br><br> Totally <b>%2</b> steps.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="172"/>
|
<location filename="../Game.qml" line="174"/>
|
||||||
<source><br> The minimum number of steps for this level : <b>%3</b></source>
|
<source><br> The minimum number of steps for this level : <b>%3</b></source>
|
||||||
<translation><br> The minimum number of steps for this level : <b>%3</b></translation>
|
<translation><br> The minimum number of steps for this level : <b>%3</b></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="190"/>
|
<location filename="../Game.qml" line="192"/>
|
||||||
<source>You got <b>%0</b> points for this level!</source>
|
<source>You got <b>%0</b> points for this level!</source>
|
||||||
<translation>You got <b>%0</b> points for this level!</translation>
|
<translation>You got <b>%0</b> points for this level!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="191"/>
|
<location filename="../Game.qml" line="193"/>
|
||||||
<source><br><br> Totally <b>%1</b> steps.</source>
|
<source><br><br> Totally <b>%1</b> steps.</source>
|
||||||
<translation><br><br> Totally <b>%1</b> steps.</translation>
|
<translation><br><br> Totally <b>%1</b> steps.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="192"/>
|
<location filename="../Game.qml" line="194"/>
|
||||||
<source><br> The minimum number of steps for this level : <b>%2</b></source>
|
<source><br> The minimum number of steps for this level : <b>%2</b></source>
|
||||||
<translation><br> The minimum number of steps for this level : <b>%2</b></translation>
|
<translation><br> The minimum number of steps for this level : <b>%2</b></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -167,38 +167,38 @@
|
|||||||
<translation type="vanished">このLVLの最小ステップ: %1</translation>
|
<translation type="vanished">このLVLの最小ステップ: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="167"/>
|
<location filename="../Game.qml" line="169"/>
|
||||||
<location filename="../Game.qml" line="187"/>
|
<location filename="../Game.qml" line="189"/>
|
||||||
<source>Congratulations! You have passed the level %0</source>
|
<source>Congratulations! You have passed the level %0</source>
|
||||||
<translation>おめでとう! レベル %0 に合格しました</translation>
|
<translation>おめでとう! レベル %0 に合格しました</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="170"/>
|
<location filename="../Game.qml" line="172"/>
|
||||||
<source>You got <b>%0</b> points for this level and unlocked the level <b>%1</b>!</source>
|
<source>You got <b>%0</b> points for this level and unlocked the level <b>%1</b>!</source>
|
||||||
<translation>あなたが得た <b>%0</b> このレベルのポイントとレベルのロック解除 <b>%1</b>!</translation>
|
<translation>あなたが得た <b>%0</b> このレベルのポイントとレベルのロック解除 <b>%1</b>!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="171"/>
|
<location filename="../Game.qml" line="173"/>
|
||||||
<source><br><br> Totally <b>%2</b> steps.</source>
|
<source><br><br> Totally <b>%2</b> steps.</source>
|
||||||
<translation><br><br> 完全に <b>%2</b> ステップ.</translation>
|
<translation><br><br> 完全に <b>%2</b> ステップ.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="172"/>
|
<location filename="../Game.qml" line="174"/>
|
||||||
<source><br> The minimum number of steps for this level : <b>%3</b></source>
|
<source><br> The minimum number of steps for this level : <b>%3</b></source>
|
||||||
<translation><br> このレベルの最小ステップ数 : <b>%3</b></translation>
|
<translation><br> このレベルの最小ステップ数 : <b>%3</b></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="190"/>
|
<location filename="../Game.qml" line="192"/>
|
||||||
<source>You got <b>%0</b> points for this level!</source>
|
<source>You got <b>%0</b> points for this level!</source>
|
||||||
<translation>このレベルで <b>%0</b> ポイント獲得しました!</translation>
|
<translation>このレベルで <b>%0</b> ポイント獲得しました!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="191"/>
|
<location filename="../Game.qml" line="193"/>
|
||||||
<source><br><br> Totally <b>%1</b> steps.</source>
|
<source><br><br> Totally <b>%1</b> steps.</source>
|
||||||
<translation><br><br> 完全に <b>%1</b> ステップ.</translation>
|
<translation><br><br> 完全に <b>%1</b> ステップ.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="192"/>
|
<location filename="../Game.qml" line="194"/>
|
||||||
<source><br> The minimum number of steps for this level : <b>%2</b></source>
|
<source><br> The minimum number of steps for this level : <b>%2</b></source>
|
||||||
<translation><br> このレベルの最小ステップ数 : <b>%2</b></translation>
|
<translation><br> このレベルの最小ステップ数 : <b>%2</b></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -174,38 +174,38 @@
|
|||||||
<translation type="vanished">Минимальные шаги для этого уровня:%1</translation>
|
<translation type="vanished">Минимальные шаги для этого уровня:%1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="167"/>
|
<location filename="../Game.qml" line="169"/>
|
||||||
<location filename="../Game.qml" line="187"/>
|
<location filename="../Game.qml" line="189"/>
|
||||||
<source>Congratulations! You have passed the level %0</source>
|
<source>Congratulations! You have passed the level %0</source>
|
||||||
<translation>Поздравляем! Вы прошли уровень %0</translation>
|
<translation>Поздравляем! Вы прошли уровень %0</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="170"/>
|
<location filename="../Game.qml" line="172"/>
|
||||||
<source>You got <b>%0</b> points for this level and unlocked the level <b>%1</b>!</source>
|
<source>You got <b>%0</b> points for this level and unlocked the level <b>%1</b>!</source>
|
||||||
<translation>Вы набрали <b>%0</b> баллов за этот уровень и разблокировали уровень <b>%1</b>!</translation>
|
<translation>Вы набрали <b>%0</b> баллов за этот уровень и разблокировали уровень <b>%1</b>!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="171"/>
|
<location filename="../Game.qml" line="173"/>
|
||||||
<source><br><br> Totally <b>%2</b> steps.</source>
|
<source><br><br> Totally <b>%2</b> steps.</source>
|
||||||
<translation><br><br> Всего <b>%2</b> ходов.</translation>
|
<translation><br><br> Всего <b>%2</b> ходов.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="172"/>
|
<location filename="../Game.qml" line="174"/>
|
||||||
<source><br> The minimum number of steps for this level : <b>%3</b></source>
|
<source><br> The minimum number of steps for this level : <b>%3</b></source>
|
||||||
<translation><br> Минимально количество ходов для уровня: <b>%3</b></translation>
|
<translation><br> Минимально количество ходов для уровня: <b>%3</b></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="190"/>
|
<location filename="../Game.qml" line="192"/>
|
||||||
<source>You got <b>%0</b> points for this level!</source>
|
<source>You got <b>%0</b> points for this level!</source>
|
||||||
<translation>Вы набрали <b>%0</b> баллов за этот уровень!</translation>
|
<translation>Вы набрали <b>%0</b> баллов за этот уровень!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="191"/>
|
<location filename="../Game.qml" line="193"/>
|
||||||
<source><br><br> Totally <b>%1</b> steps.</source>
|
<source><br><br> Totally <b>%1</b> steps.</source>
|
||||||
<translation><br><br> Всего <b>%1</b> ходов.</translation>
|
<translation><br><br> Всего <b>%1</b> ходов.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="192"/>
|
<location filename="../Game.qml" line="194"/>
|
||||||
<source><br> The minimum number of steps for this level : <b>%2</b></source>
|
<source><br> The minimum number of steps for this level : <b>%2</b></source>
|
||||||
<translation><br> Минимальное количиство ходов для уровня : <b>%2</b></translation>
|
<translation><br> Минимальное количиство ходов для уровня : <b>%2</b></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -175,38 +175,38 @@ Bu seviye için minimum adımlar: %2</translation>
|
|||||||
<translation type="vanished">Bu seviye için minimum adımlar: %1</translation>
|
<translation type="vanished">Bu seviye için minimum adımlar: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="167"/>
|
<location filename="../Game.qml" line="169"/>
|
||||||
<location filename="../Game.qml" line="187"/>
|
<location filename="../Game.qml" line="189"/>
|
||||||
<source>Congratulations! You have passed the level %0</source>
|
<source>Congratulations! You have passed the level %0</source>
|
||||||
<translation>Tebrikler! %0 seviyesini geçtiniz</translation>
|
<translation>Tebrikler! %0 seviyesini geçtiniz</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="170"/>
|
<location filename="../Game.qml" line="172"/>
|
||||||
<source>You got <b>%0</b> points for this level and unlocked the level <b>%1</b>!</source>
|
<source>You got <b>%0</b> points for this level and unlocked the level <b>%1</b>!</source>
|
||||||
<translation>Bu seviye için <b>%0</b> puan aldınız ve <b>%1</b> seviyesinin kilidini açtınız!</translation>
|
<translation>Bu seviye için <b>%0</b> puan aldınız ve <b>%1</b> seviyesinin kilidini açtınız!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="171"/>
|
<location filename="../Game.qml" line="173"/>
|
||||||
<source><br><br> Totally <b>%2</b> steps.</source>
|
<source><br><br> Totally <b>%2</b> steps.</source>
|
||||||
<translation><br><br> Tamamen <b>%2</b> adım.</translation>
|
<translation><br><br> Tamamen <b>%2</b> adım.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="172"/>
|
<location filename="../Game.qml" line="174"/>
|
||||||
<source><br> The minimum number of steps for this level : <b>%3</b></source>
|
<source><br> The minimum number of steps for this level : <b>%3</b></source>
|
||||||
<translation><br> Bu seviye için minimum adım sayısı : <b>%3</b></translation>
|
<translation><br> Bu seviye için minimum adım sayısı : <b>%3</b></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="190"/>
|
<location filename="../Game.qml" line="192"/>
|
||||||
<source>You got <b>%0</b> points for this level!</source>
|
<source>You got <b>%0</b> points for this level!</source>
|
||||||
<translation>Bu seviye için <b>%0</b> puan aldınız!</translation>
|
<translation>Bu seviye için <b>%0</b> puan aldınız!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="191"/>
|
<location filename="../Game.qml" line="193"/>
|
||||||
<source><br><br> Totally <b>%1</b> steps.</source>
|
<source><br><br> Totally <b>%1</b> steps.</source>
|
||||||
<translation><br><br> Tamamen <b>%1</b> adım.</translation>
|
<translation><br><br> Tamamen <b>%1</b> adım.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="192"/>
|
<location filename="../Game.qml" line="194"/>
|
||||||
<source><br> The minimum number of steps for this level : <b>%2</b></source>
|
<source><br> The minimum number of steps for this level : <b>%2</b></source>
|
||||||
<translation><br> Bu seviye için minimum adım sayısı : <b>%2</b></translation>
|
<translation><br> Bu seviye için minimum adım sayısı : <b>%2</b></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -177,38 +177,38 @@
|
|||||||
<translation type="vanished">Мінімальні кроки для цього рівня: %1</translation>
|
<translation type="vanished">Мінімальні кроки для цього рівня: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="167"/>
|
<location filename="../Game.qml" line="169"/>
|
||||||
<location filename="../Game.qml" line="187"/>
|
<location filename="../Game.qml" line="189"/>
|
||||||
<source>Congratulations! You have passed the level %0</source>
|
<source>Congratulations! You have passed the level %0</source>
|
||||||
<translation>Вітаємо! Ви пройшли рівень %0</translation>
|
<translation>Вітаємо! Ви пройшли рівень %0</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="170"/>
|
<location filename="../Game.qml" line="172"/>
|
||||||
<source>You got <b>%0</b> points for this level and unlocked the level <b>%1</b>!</source>
|
<source>You got <b>%0</b> points for this level and unlocked the level <b>%1</b>!</source>
|
||||||
<translation>Ви отримали <b>%0</b> балів за цей рівень і розблокували рівень <b>%1</b>!</translation>
|
<translation>Ви отримали <b>%0</b> балів за цей рівень і розблокували рівень <b>%1</b>!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="171"/>
|
<location filename="../Game.qml" line="173"/>
|
||||||
<source><br><br> Totally <b>%2</b> steps.</source>
|
<source><br><br> Totally <b>%2</b> steps.</source>
|
||||||
<translation><br><br>Повністю<b>%2</b> кроків.</translation>
|
<translation><br><br>Повністю<b>%2</b> кроків.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="172"/>
|
<location filename="../Game.qml" line="174"/>
|
||||||
<source><br> The minimum number of steps for this level : <b>%3</b></source>
|
<source><br> The minimum number of steps for this level : <b>%3</b></source>
|
||||||
<translation><br> Мінімальна кількість кроків для цього рівня: <b>%3</b></translation>
|
<translation><br> Мінімальна кількість кроків для цього рівня: <b>%3</b></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="190"/>
|
<location filename="../Game.qml" line="192"/>
|
||||||
<source>You got <b>%0</b> points for this level!</source>
|
<source>You got <b>%0</b> points for this level!</source>
|
||||||
<translation>Ви отримали <b>%0</b> балів за цей рівень!</translation>
|
<translation>Ви отримали <b>%0</b> балів за цей рівень!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="191"/>
|
<location filename="../Game.qml" line="193"/>
|
||||||
<source><br><br> Totally <b>%1</b> steps.</source>
|
<source><br><br> Totally <b>%1</b> steps.</source>
|
||||||
<translation><br> <br> Повністю <b>%1</b> кроків.</translation>
|
<translation><br> <br> Повністю <b>%1</b> кроків.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../Game.qml" line="192"/>
|
<location filename="../Game.qml" line="194"/>
|
||||||
<source><br> The minimum number of steps for this level : <b>%2</b></source>
|
<source><br> The minimum number of steps for this level : <b>%2</b></source>
|
||||||
<translation><br> Мінімальна кількість кроків для цього рівня: <b>%2</b></translation>
|
<translation><br> Мінімальна кількість кроків для цього рівня: <b>%2</b></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -59,7 +59,14 @@ Item {
|
|||||||
|
|
||||||
id: loginPopUp
|
id: loginPopUp
|
||||||
lognViewModel: userLogin // exampleLogin - this is inited model in main.cpp
|
lognViewModel: userLogin // exampleLogin - this is inited model in main.cpp
|
||||||
width: 7 * controlPtMaterial
|
height: 12 * fontMetrics.height
|
||||||
|
width: 15 * fontMetrics.height
|
||||||
|
singleColumn: true
|
||||||
|
FontMetrics {
|
||||||
|
id: fontMetrics
|
||||||
|
font.capitalization: Font.AllUppercase
|
||||||
|
font.bold: true
|
||||||
|
}
|
||||||
Connections {
|
Connections {
|
||||||
target: backEnd;
|
target: backEnd;
|
||||||
function onShowOnlinePage () {
|
function onShowOnlinePage () {
|
||||||
|
@ -12,4 +12,7 @@
|
|||||||
<qresource prefix="/sql">
|
<qresource prefix="/sql">
|
||||||
<file>sql/database.sql</file>
|
<file>sql/database.sql</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
|
<qresource prefix="/sound">
|
||||||
|
<file alias="blockSound">res/TowerBlockSound_18.wav</file>
|
||||||
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
BIN
HanoiTowers/client/res/TowerBlockSound_18.wav
Normal file
BIN
HanoiTowers/client/res/TowerBlockSound_18.wav
Normal file
Binary file not shown.
@ -1 +1 @@
|
|||||||
Subproject commit 97b3cc41f4112af67bb3250e2a46395e09fefaa5
|
Subproject commit d999706ca9fcfac6acf41a11b99d19632d78e516
|
Loading…
x
Reference in New Issue
Block a user