mirror of
https://github.com/QuasarApp/Hanoi-Towers.git
synced 2025-04-26 17:54:31 +00:00
fix feedback
This commit is contained in:
parent
886d74bcfd
commit
658b5a5cde
@ -182,8 +182,10 @@ Item {
|
|||||||
popUp.open()
|
popUp.open()
|
||||||
|
|
||||||
const action = function () {
|
const action = function () {
|
||||||
|
showAdMobBanner()
|
||||||
stateData.unlockNextLvl();
|
stateData.unlockNextLvl();
|
||||||
start(stateData.lvl)
|
start(stateData.lvl)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
popUp.action = action;
|
popUp.action = action;
|
||||||
@ -202,13 +204,13 @@ Item {
|
|||||||
popUp.open()
|
popUp.open()
|
||||||
|
|
||||||
const action = function () {
|
const action = function () {
|
||||||
|
showAdMobBanner()
|
||||||
start(++stateWidget.tumbler.spin.value)
|
start(++stateWidget.tumbler.spin.value)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
popUp.action = action;
|
popUp.action = action;
|
||||||
}
|
}
|
||||||
showAdMobBanner()
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,12 +1,66 @@
|
|||||||
import QtQuick 2.15
|
import QtQuick 2.15
|
||||||
import QtAndroidTools 1.0
|
import QtAndroidTools 1.0
|
||||||
|
import QtQuick.Controls 2.15
|
||||||
|
import QtQuick.Layouts 1.15
|
||||||
|
|
||||||
QtAndroidAdMobInterstitial {
|
QtAndroidAdMobInterstitial {
|
||||||
id: interstitial
|
id: interstitial
|
||||||
|
|
||||||
unitId: "ca-app-pub-5799112356811682/5211864198"
|
unitId: "ca-app-pub-5799112356811682/5211864198"
|
||||||
nonPersonalizedAds: false
|
nonPersonalizedAds: false
|
||||||
|
onLoading: {
|
||||||
|
loadDialog.open();
|
||||||
|
}
|
||||||
|
|
||||||
onLoaded: {
|
onLoaded: {
|
||||||
show()
|
show()
|
||||||
|
loadDialog.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
onLoadError: {
|
||||||
|
loadDialog.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Dialog {
|
||||||
|
id: loadDialog
|
||||||
|
x: (gameWindow.width - width) / 2
|
||||||
|
y: (gameWindow.height - height) / 2
|
||||||
|
|
||||||
|
width: gameWindow.width * 0.9
|
||||||
|
height: gameWindow.height * 0.9
|
||||||
|
|
||||||
|
header: Label {
|
||||||
|
id: title
|
||||||
|
text: qsTr("Load ads")
|
||||||
|
font.capitalization: Font.AllUppercase
|
||||||
|
font.bold: true
|
||||||
|
|
||||||
|
horizontalAlignment: Qt.AlignHCenter
|
||||||
|
verticalAlignment: Qt.AlignTop
|
||||||
|
}
|
||||||
|
|
||||||
|
contentItem: ColumnLayout {
|
||||||
|
BusyIndicator {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
running: true
|
||||||
|
}
|
||||||
|
|
||||||
|
Label {
|
||||||
|
id: textContainer
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.fillHeight: true
|
||||||
|
|
||||||
|
anchors.fill: parent
|
||||||
|
text: qsTr("Sorry, but we need to show you an ad. We want to eat too 😇");
|
||||||
|
|
||||||
|
horizontalAlignment: Qt.AlignLeft
|
||||||
|
verticalAlignment: Qt.AlignTop
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
closePolicy: Popup.NoAutoClose
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,6 +33,17 @@
|
|||||||
* Copyright (C) 2019-2021 QuasarApp-Gruppe.</translation>
|
* Copyright (C) 2019-2021 QuasarApp-Gruppe.</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>AdMobInterstitialAndroid</name>
|
||||||
|
<message>
|
||||||
|
<source>Load ads</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Sorry, but we need to show you an ad. We want to eat too 😇</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>Config</name>
|
<name>Config</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -34,6 +34,17 @@
|
|||||||
* Copyright (C) 2019-2021 QuasarApp group.</translation>
|
* Copyright (C) 2019-2021 QuasarApp group.</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>AdMobInterstitialAndroid</name>
|
||||||
|
<message>
|
||||||
|
<source>Load ads</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Sorry, but we need to show you an ad. We want to eat too 😇</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BackEnd</name>
|
<name>BackEnd</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -34,6 +34,17 @@
|
|||||||
* Copyright (C) 2019-2021 Grupo QuasarApp.</translation>
|
* Copyright (C) 2019-2021 Grupo QuasarApp.</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>AdMobInterstitialAndroid</name>
|
||||||
|
<message>
|
||||||
|
<source>Load ads</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Sorry, but we need to show you an ad. We want to eat too 😇</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>Config</name>
|
<name>Config</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -34,6 +34,17 @@
|
|||||||
* Copyright (C) 2019-2021 Groupe QuasarApp.</translation>
|
* Copyright (C) 2019-2021 Groupe QuasarApp.</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>AdMobInterstitialAndroid</name>
|
||||||
|
<message>
|
||||||
|
<source>Load ads</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Sorry, but we need to show you an ad. We want to eat too 😇</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>Config</name>
|
<name>Config</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -48,6 +48,17 @@
|
|||||||
* Copyright(C)2018-2019 Yankovich N. Andrei。 {3 ?} {2018-2019 ?}</translation>
|
* Copyright(C)2018-2019 Yankovich N. Andrei。 {3 ?} {2018-2019 ?}</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>AdMobInterstitialAndroid</name>
|
||||||
|
<message>
|
||||||
|
<source>Load ads</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Sorry, but we need to show you an ad. We want to eat too 😇</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BackEnd</name>
|
<name>BackEnd</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -34,6 +34,17 @@
|
|||||||
* Prawa autorskie (C) 2019-2021 grupa QuasarApp.</translation>
|
* Prawa autorskie (C) 2019-2021 grupa QuasarApp.</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>AdMobInterstitialAndroid</name>
|
||||||
|
<message>
|
||||||
|
<source>Load ads</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Sorry, but we need to show you an ad. We want to eat too 😇</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>Config</name>
|
<name>Config</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -48,6 +48,17 @@
|
|||||||
* Copyright (C) 2018-2019 Янкович А. Н.</translation>
|
* Copyright (C) 2018-2019 Янкович А. Н.</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>AdMobInterstitialAndroid</name>
|
||||||
|
<message>
|
||||||
|
<source>Load ads</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Sorry, but we need to show you an ad. We want to eat too 😇</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BackEnd</name>
|
<name>BackEnd</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -48,6 +48,17 @@
|
|||||||
* Telif Hakkı (C) 2018-2019 Yankovich N. Andrei.</translation>
|
* Telif Hakkı (C) 2018-2019 Yankovich N. Andrei.</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>AdMobInterstitialAndroid</name>
|
||||||
|
<message>
|
||||||
|
<source>Load ads</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Sorry, but we need to show you an ad. We want to eat too 😇</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BackEnd</name>
|
<name>BackEnd</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -50,6 +50,17 @@
|
|||||||
* Авторське право (C) 2018-2019 Янкович Н. Андрій.</translation>
|
* Авторське право (C) 2018-2019 Янкович Н. Андрій.</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>AdMobInterstitialAndroid</name>
|
||||||
|
<message>
|
||||||
|
<source>Load ads</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Sorry, but we need to show you an ad. We want to eat too 😇</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BackEnd</name>
|
<name>BackEnd</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -34,6 +34,17 @@
|
|||||||
* 版权所有 (C) 2019-2021 QuasarApp group 。</translation>
|
* 版权所有 (C) 2019-2021 QuasarApp group 。</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>AdMobInterstitialAndroid</name>
|
||||||
|
<message>
|
||||||
|
<source>Load ads</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Sorry, but we need to show you an ad. We want to eat too 😇</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>Config</name>
|
<name>Config</name>
|
||||||
<message>
|
<message>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user