mirror of
https://github.com/QuasarApp/Hanoi-Towers.git
synced 2025-05-11 17:09:35 +00:00
v1.5.3
This commit is contained in:
parent
6e68a7ad81
commit
c9ceb3537f
@ -13,18 +13,8 @@ Item {
|
||||
width: parent.width / 20
|
||||
x: parent.width / 2 - width / 2
|
||||
y: 0
|
||||
// color: "#ff0000"
|
||||
radius: 20
|
||||
// gradient: Gradient {
|
||||
// GradientStop {
|
||||
// position: 0.00;
|
||||
// color: "#f0cb98";
|
||||
// }
|
||||
// GradientStop {
|
||||
// position: 1.00;
|
||||
// color: "#d9b077";
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
LinearGradient {
|
||||
source: parent
|
||||
@ -43,11 +33,6 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
// anchors.top: tover.top
|
||||
// anchors.topMargin: 60
|
||||
// anchors.bottomMargin: 0
|
||||
// anchors.bottom: tover.bottom
|
||||
|
||||
}
|
||||
|
||||
Image {
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include "backEnd.h"
|
||||
#include <cmath>
|
||||
#include <QDataStream>
|
||||
#include <QDir>
|
||||
|
||||
BackEnd::BackEnd():
|
||||
QObject()
|
||||
@ -16,8 +17,15 @@ void BackEnd::reset(){
|
||||
_randomColor = false;
|
||||
}
|
||||
|
||||
void BackEnd::writeConfig() const{
|
||||
QFile f(SAVE);
|
||||
void BackEnd::writeConfig() const {
|
||||
QDir dir(QDir::rootPath());
|
||||
|
||||
if (!QFileInfo::exists(MAIN_FOLDER) &&
|
||||
!dir.mkpath(MAIN_FOLDER)) {
|
||||
return;
|
||||
}
|
||||
|
||||
QFile f(MAIN_SETINGS_FILE);
|
||||
if(f.open(QIODevice::WriteOnly|QIODevice::Truncate)){
|
||||
QDataStream stream(&f);
|
||||
stream << lvl;
|
||||
@ -55,7 +63,7 @@ void BackEnd::setAnimation(bool name) {
|
||||
}
|
||||
|
||||
void BackEnd::readCnfig() {
|
||||
QFile f(SAVE);
|
||||
QFile f(MAIN_SETINGS_FILE);
|
||||
if(f.exists() && f.open(QIODevice::ReadOnly)){
|
||||
QDataStream stream(&f);
|
||||
stream >> lvl;
|
||||
|
@ -3,6 +3,11 @@
|
||||
#include <QObject>
|
||||
#include <QFile>
|
||||
#define SAVE "data"
|
||||
|
||||
#define MAIN_FOLDER QDir::homePath() + "/.HanoiTowers"
|
||||
#define MAIN_FOLDER_KEY "HanoiTowersFolder"
|
||||
#define MAIN_SETINGS_FILE MAIN_FOLDER + "/" + SAVE
|
||||
|
||||
class BackEnd: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -61,7 +61,9 @@ DISTFILES += \
|
||||
languages/ja.ts \
|
||||
languages/tr.ts \
|
||||
languages/en.ts \
|
||||
languages/ua.ts
|
||||
languages/ua.ts \
|
||||
../snap/snapcraft.yaml
|
||||
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
|
||||
|
||||
HEADERS += \
|
||||
|
Binary file not shown.
@ -131,12 +131,12 @@
|
||||
* This game is distributed under the LGPLv3 license.
|
||||
* Contact: https://github.com/EndrII
|
||||
* Copyright (C) 2018-2019 Yankovich N. Andrei.</source>
|
||||
<translation type="unfinished">QuasarAppの製品
|
||||
<translation>QuasarAppの製品
|
||||
*開発者:
|
||||
*プログラマー:Yankovich N. Andrei。
|
||||
*このゲームはLGPLv3ライセンスの下で配布されています。
|
||||
*お問い合わせ先:https://github.com/EndrII
|
||||
* Copyright(C)2018 Yankovich N. Andrei。 {3 ?} {2018-2019 ?}</translation>
|
||||
* Copyright(C)2018-2019 Yankovich N. Andrei。 {3 ?} {2018-2019 ?}</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Product of QuasarApp
|
||||
|
Binary file not shown.
@ -123,12 +123,12 @@
|
||||
* This game is distributed under the LGPLv3 license.
|
||||
* Contact: https://github.com/EndrII
|
||||
* Copyright (C) 2018-2019 Yankovich N. Andrei.</source>
|
||||
<translation type="unfinished">Продукт QuasarApp
|
||||
<translation>Продукт QuasarApp
|
||||
* Разработчики:
|
||||
* Программист: Янкович А. Н.
|
||||
* Эта игра распостроняеться в соотвецтвии с лицензией LGPLv3.
|
||||
* Сайт игры: https://quasarapp.github.io/Hanoi-Towers/
|
||||
* Copyright (C) 2018 Янкович А. Н. {3 ?} {2018-2019 ?}</translation>
|
||||
* Copyright (C) 2018-2019 Янкович А. Н.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Product of QuasarApp
|
||||
|
Binary file not shown.
@ -123,12 +123,12 @@
|
||||
* This game is distributed under the LGPLv3 license.
|
||||
* Contact: https://github.com/EndrII
|
||||
* Copyright (C) 2018-2019 Yankovich N. Andrei.</source>
|
||||
<translation type="unfinished">QuasarApp ürünü
|
||||
<translation>QuasarApp ürünü
|
||||
* Geliştiriciler:
|
||||
* Programcı: Yankovich N. Andrei.
|
||||
* Bu oyun LGPLv3 lisansı altında dağıtılmaktadır.
|
||||
* İletişim: https://github.com/EndrII
|
||||
* Telif Hakkı (C) 2018 Yankovich N. Andrei. {3 ?} {2018-2019 ?}</translation>
|
||||
* Telif Hakkı (C) 2018-2019 Yankovich N. Andrei.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Product of QuasarApp
|
||||
|
Binary file not shown.
@ -123,12 +123,12 @@
|
||||
* This game is distributed under the LGPLv3 license.
|
||||
* Contact: https://github.com/EndrII
|
||||
* Copyright (C) 2018-2019 Yankovich N. Andrei.</source>
|
||||
<translation type="unfinished">Продукт компанії QuasarApp
|
||||
<translation>Продукт компанії QuasarApp
|
||||
* Розробники:
|
||||
* Програміст: Янкович Н. Андрій.
|
||||
* Ця гра поширюється під ліцензією LGPLv3.
|
||||
* Контакт: https://github.com/EndrII
|
||||
* Авторське право (C) 2018 Янкович Н. Андрій. {3 ?} {2018-2019 ?}</translation>
|
||||
* Авторське право (C) 2018-2019 Янкович Н. Андрій.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Product of QuasarApp
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 21721ac24606575ab5aabaacdadb167725bbb320
|
||||
Subproject commit 320e5e530a915a60b8d4eae32d663af7a528099e
|
Loading…
x
Reference in New Issue
Block a user