Forums

OverviewV-Play 2 Support (Qt 5)QTD on "Leaderboard info OK" › Reply To: QTD on "Leaderboard info OK"

OverviewV-Play 2 Support (Qt 5)QTD on "Leaderboard info OK" › Reply To: QTD on "Leaderboard info OK"
#8830

Martin

Thanks you’re right – I’m missing that target condition.

 

I think I inherited this oversimplification from Multi-Level-Multi-Scene demo 😀

 

  // menu scene
  MenuScene {
    id: menuScene
    // listen to the button signals of the scene and change the state according to it
    onSelectLevelPressed: gameWindow.state = "selectLevel"
    onCreditsPressed: gameWindow.state = "credits"
    // the menu scene is our start scene, so if back is pressed there we ask the user if he wants to quit the application
    onBackButtonPressed: {
      nativeUtils.displayMessageBox("Really quit the game?", "", 2);
    }
    // listen to the return value of the MessageBox
    Connections {
      target: nativeUtils
      onMessageBoxFinished: {
        if(accepted)
          Qt.quit()
      }
    }
  }

 

 

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support