Skip to content

Commit

Permalink
Merge pull request #81 from QuasarApp/dev
Browse files Browse the repository at this point in the history
hot-fix update
  • Loading branch information
EndrII authored May 15, 2021
2 parents bcceedc + 3669a88 commit 3056979
Show file tree
Hide file tree
Showing 12 changed files with 118 additions and 100 deletions.
8 changes: 7 additions & 1 deletion HanoiTowers/client/Game.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Dialogs 1.3
import QtQuick.Layouts 1.15

import QtMultimedia 5.15

Item {
visible: true
Expand Down Expand Up @@ -124,6 +124,8 @@ Item {

function trigered(obj) {

clickSound.play()

stateWidget.tumbler.visible = false;
let objectPlate = null;
if (upPlate) {
Expand Down Expand Up @@ -247,4 +249,8 @@ Item {
id: help
}

SoundEffect {
id: clickSound
source: "qrc:/sound/blockSound"
}
}
2 changes: 1 addition & 1 deletion HanoiTowers/client/android/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<manifest package="df.mobily.hanoi_towers" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.6.0.0" android:versionCode="22" android:installLocation="auto">
<manifest package="df.mobily.hanoi_towers" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.6.0.1" android:versionCode="23" android:installLocation="auto">
<!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.
Remove the comment if you do not require these default permissions. -->
<!-- %%INSERT_PERMISSIONS -->
Expand Down
4 changes: 3 additions & 1 deletion HanoiTowers/client/hanoitowers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void HanoiTowers::init() {

void HanoiTowers::loadOldSaves() {
QFile f(MAIN_SETINGS_FILE);
if(f.open(QIODevice::ReadWrite)){
if(f.open(QIODevice::ReadOnly)){
QDataStream stream(&f);

unsigned short lvl;
Expand All @@ -145,6 +145,8 @@ void HanoiTowers::loadOldSaves() {

f.close();
f.remove();

updateProfile();
}
}

Expand Down
38 changes: 19 additions & 19 deletions HanoiTowers/client/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,38 +149,38 @@
<translation type="vanished">Minimum steps for this lvl: %1</translation>
</message>
<message>
<location filename="../Game.qml" line="167"/>
<location filename="../Game.qml" line="187"/>
<location filename="../Game.qml" line="169"/>
<location filename="../Game.qml" line="189"/>
<source>Congratulations! You have passed the level %0</source>
<translation>Congratulations! You have passed the level %0</translation>
</message>
<message>
<location filename="../Game.qml" line="170"/>
<location filename="../Game.qml" line="172"/>
<source>You got &lt;b&gt;%0&lt;/b&gt; points for this level and unlocked the level &lt;b&gt;%1&lt;/b&gt;!</source>
<translation>You got &lt;b&gt;%0&lt;/b&gt; points for this level and unlocked the level &lt;b&gt;%1&lt;/b&gt;!</translation>
</message>
<message>
<location filename="../Game.qml" line="171"/>
<location filename="../Game.qml" line="173"/>
<source>&lt;br&gt;&lt;br&gt; Totally &lt;b&gt;%2&lt;/b&gt; steps.</source>
<translation>&lt;br&gt;&lt;br&gt; Totally &lt;b&gt;%2&lt;/b&gt; steps.</translation>
</message>
<message>
<location filename="../Game.qml" line="172"/>
<location filename="../Game.qml" line="174"/>
<source>&lt;br&gt; The minimum number of steps for this level : &lt;b&gt;%3&lt;/b&gt;</source>
<translation>&lt;br&gt; The minimum number of steps for this level : &lt;b&gt;%3&lt;/b&gt;</translation>
</message>
<message>
<location filename="../Game.qml" line="190"/>
<location filename="../Game.qml" line="192"/>
<source>You got &lt;b&gt;%0&lt;/b&gt; points for this level!</source>
<translation>You got &lt;b&gt;%0&lt;/b&gt; points for this level!</translation>
</message>
<message>
<location filename="../Game.qml" line="191"/>
<location filename="../Game.qml" line="193"/>
<source>&lt;br&gt;&lt;br&gt; Totally &lt;b&gt;%1&lt;/b&gt; steps.</source>
<translation>&lt;br&gt;&lt;br&gt; Totally &lt;b&gt;%1&lt;/b&gt; steps.</translation>
</message>
<message>
<location filename="../Game.qml" line="192"/>
<location filename="../Game.qml" line="194"/>
<source>&lt;br&gt; The minimum number of steps for this level : &lt;b&gt;%2&lt;/b&gt;</source>
<translation>&lt;br&gt; The minimum number of steps for this level : &lt;b&gt;%2&lt;/b&gt;</translation>
</message>
Expand Down Expand Up @@ -302,32 +302,32 @@
<translation>User with this id already registered. If it you then use please the login form.</translation>
</message>
<message>
<location filename="../hanoitowers.cpp" line="440"/>
<location filename="../hanoitowers.cpp" line="442"/>
<source>Create user error</source>
<translation>User create error</translation>
</message>
<message>
<location filename="../hanoitowers.cpp" line="441"/>
<location filename="../hanoitowers.cpp" line="443"/>
<source>Failed to create a new user, The name %0 alredy used.</source>
<translation>Failed to create a new user, This name %0 alredy used.</translation>
</message>
<message>
<location filename="../hanoitowers.cpp" line="472"/>
<location filename="../hanoitowers.cpp" line="474"/>
<source>Remove online error</source>
<translation>Remove online error</translation>
</message>
<message>
<location filename="../hanoitowers.cpp" line="472"/>
<location filename="../hanoitowers.cpp" line="474"/>
<source>current profile not online!</source>
<translation>Current profile is offline!</translation>
</message>
<message>
<location filename="../hanoitowers.cpp" line="478"/>
<location filename="../hanoitowers.cpp" line="480"/>
<source>Remove Local user</source>
<translation>Remove Local user</translation>
</message>
<message>
<location filename="../hanoitowers.cpp" line="478"/>
<location filename="../hanoitowers.cpp" line="480"/>
<source>Failed to remove the local user data</source>
<translation>Failed to remove the local user data</translation>
</message>
Expand Down Expand Up @@ -567,27 +567,27 @@
<translation>Return to main menu</translation>
</message>
<message>
<location filename="../menu/ToolBarPage.qml" line="72"/>
<location filename="../menu/ToolBarPage.qml" line="76"/>
<source>Welcom to Hanoi Towers </source>
<translation>Welcom to Hanoi Towers </translation>
</message>
<message>
<location filename="../menu/ToolBarPage.qml" line="83"/>
<location filename="../menu/ToolBarPage.qml" line="87"/>
<source>Profiles</source>
<translation>Profiles</translation>
</message>
<message>
<location filename="../menu/ToolBarPage.qml" line="95"/>
<location filename="../menu/ToolBarPage.qml" line="99"/>
<source>This are the main settings</source>
<translation>This are the main settings</translation>
</message>
<message>
<location filename="../menu/ToolBarPage.qml" line="107"/>
<location filename="../menu/ToolBarPage.qml" line="111"/>
<source>About Page</source>
<translation>About Page</translation>
</message>
<message>
<location filename="../menu/ToolBarPage.qml" line="119"/>
<location filename="../menu/ToolBarPage.qml" line="123"/>
<source>World Of Hanoi Towers</source>
<translation>World Of Hanoi Towers</translation>
</message>
Expand Down
38 changes: 19 additions & 19 deletions HanoiTowers/client/languages/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,38 +167,38 @@
<translation type="vanished">このLVLの最小ステップ: %1</translation>
</message>
<message>
<location filename="../Game.qml" line="167"/>
<location filename="../Game.qml" line="187"/>
<location filename="../Game.qml" line="169"/>
<location filename="../Game.qml" line="189"/>
<source>Congratulations! You have passed the level %0</source>
<translation>おめでとう! レベル %0 に合格しました</translation>
</message>
<message>
<location filename="../Game.qml" line="170"/>
<location filename="../Game.qml" line="172"/>
<source>You got &lt;b&gt;%0&lt;/b&gt; points for this level and unlocked the level &lt;b&gt;%1&lt;/b&gt;!</source>
<translation>あなたが得た &lt;b&gt;%0&lt;/b&gt; このレベルのポイントとレベルのロック解除 &lt;b&gt;%1&lt;/b&gt;!</translation>
</message>
<message>
<location filename="../Game.qml" line="171"/>
<location filename="../Game.qml" line="173"/>
<source>&lt;br&gt;&lt;br&gt; Totally &lt;b&gt;%2&lt;/b&gt; steps.</source>
<translation>&lt;br&gt;&lt;br&gt; 完全に &lt;b&gt;%2&lt;/b&gt; ステップ.</translation>
</message>
<message>
<location filename="../Game.qml" line="172"/>
<location filename="../Game.qml" line="174"/>
<source>&lt;br&gt; The minimum number of steps for this level : &lt;b&gt;%3&lt;/b&gt;</source>
<translation>&lt;br&gt; このレベルの最小ステップ数 : &lt;b&gt;%3&lt;/b&gt;</translation>
</message>
<message>
<location filename="../Game.qml" line="190"/>
<location filename="../Game.qml" line="192"/>
<source>You got &lt;b&gt;%0&lt;/b&gt; points for this level!</source>
<translation>このレベルで &lt;b&gt;%0&lt;/b&gt; ポイント獲得しました!</translation>
</message>
<message>
<location filename="../Game.qml" line="191"/>
<location filename="../Game.qml" line="193"/>
<source>&lt;br&gt;&lt;br&gt; Totally &lt;b&gt;%1&lt;/b&gt; steps.</source>
<translation>&lt;br&gt;&lt;br&gt; 完全に &lt;b&gt;%1&lt;/b&gt; ステップ.</translation>
</message>
<message>
<location filename="../Game.qml" line="192"/>
<location filename="../Game.qml" line="194"/>
<source>&lt;br&gt; The minimum number of steps for this level : &lt;b&gt;%2&lt;/b&gt;</source>
<translation>&lt;br&gt; このレベルの最小ステップ数 : &lt;b&gt;%2&lt;/b&gt;</translation>
</message>
Expand Down Expand Up @@ -320,32 +320,32 @@
<translation>このIDのユーザーはすでに登録されています。 それを使用する場合は、ログインフォームを使用してください。</translation>
</message>
<message>
<location filename="../hanoitowers.cpp" line="440"/>
<location filename="../hanoitowers.cpp" line="442"/>
<source>Create user error</source>
<translation>ユーザーエラーの作成</translation>
</message>
<message>
<location filename="../hanoitowers.cpp" line="441"/>
<location filename="../hanoitowers.cpp" line="443"/>
<source>Failed to create a new user, The name %0 alredy used.</source>
<translation>新しいユーザーの作成に失敗しました。名前 %0 はすでに使用されています。</translation>
</message>
<message>
<location filename="../hanoitowers.cpp" line="472"/>
<location filename="../hanoitowers.cpp" line="474"/>
<source>Remove online error</source>
<translation>オンラインユーザーデータの削除中にエラーが発生しました</translation>
</message>
<message>
<location filename="../hanoitowers.cpp" line="472"/>
<location filename="../hanoitowers.cpp" line="474"/>
<source>current profile not online!</source>
<translation>現在のプロファイルはオフラインです!</translation>
</message>
<message>
<location filename="../hanoitowers.cpp" line="478"/>
<location filename="../hanoitowers.cpp" line="480"/>
<source>Remove Local user</source>
<translation>ローカルユーザーを削除する</translation>
</message>
<message>
<location filename="../hanoitowers.cpp" line="478"/>
<location filename="../hanoitowers.cpp" line="480"/>
<source>Failed to remove the local user data</source>
<translation>ローカルユーザーデータの削除に失敗しました</translation>
</message>
Expand Down Expand Up @@ -616,27 +616,27 @@
<translation>メインメニューへ戻る</translation>
</message>
<message>
<location filename="../menu/ToolBarPage.qml" line="72"/>
<location filename="../menu/ToolBarPage.qml" line="76"/>
<source>Welcom to Hanoi Towers </source>
<translation>ハノイタワー</translation>
</message>
<message>
<location filename="../menu/ToolBarPage.qml" line="83"/>
<location filename="../menu/ToolBarPage.qml" line="87"/>
<source>Profiles</source>
<translation>プロファイル</translation>
</message>
<message>
<location filename="../menu/ToolBarPage.qml" line="95"/>
<location filename="../menu/ToolBarPage.qml" line="99"/>
<source>This are the main settings</source>
<translation>これはメインの設定です</translation>
</message>
<message>
<location filename="../menu/ToolBarPage.qml" line="107"/>
<location filename="../menu/ToolBarPage.qml" line="111"/>
<source>About Page</source>
<translation>ページに関して</translation>
</message>
<message>
<location filename="../menu/ToolBarPage.qml" line="119"/>
<location filename="../menu/ToolBarPage.qml" line="123"/>
<source>World Of Hanoi Towers</source>
<translation>ハノイタワーズワールド</translation>
</message>
Expand Down
Loading

0 comments on commit 3056979

Please sign in to comment.