mirror of
https://github.com/QuasarApp/Hanoi-Towers.git
synced 2025-05-12 01:19:34 +00:00
show banner
This commit is contained in:
parent
cde4e7c108
commit
8dcadaf5b0
@ -20,6 +20,7 @@ ApplicationWindow {
|
||||
width: 1240
|
||||
height: 720
|
||||
title: qsTr("Hanoi Towers")
|
||||
property var admodbanner: null
|
||||
|
||||
function createSpriteObjects(url, parent) {
|
||||
if (!backEnd.isAndroid()) {
|
||||
@ -33,7 +34,8 @@ ApplicationWindow {
|
||||
|
||||
const obj = createSpriteObjects(":/admod/AdMobInterstitialAndroid.qml", this);
|
||||
if (obj) {
|
||||
|
||||
admodbanner = obj;
|
||||
admodbanner.show();
|
||||
}
|
||||
}
|
||||
|
||||
@ -63,6 +65,11 @@ ApplicationWindow {
|
||||
anchors.fill: parent
|
||||
interactive: false
|
||||
|
||||
onCurrentIndexChanged: {
|
||||
if (admodbanner)
|
||||
admodbanner.show();
|
||||
}
|
||||
|
||||
background: Item {}
|
||||
|
||||
Menu.MainMenu {
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit fb3474dd183727790294e600c07531c20af22eb6
|
||||
Subproject commit d3f1c400719858fc22eefa0cbfe9485b8e9666af
|
Loading…
x
Reference in New Issue
Block a user