qmlfrontend/Page1.qml
changeset 16046 e8afb1bf2779
parent 16045 4933920eba89
equal deleted inserted replaced
16045:4933920eba89 16046:e8afb1bf2779
    81   }
    81   }
    82 
    82 
    83   tickButton {
    83   tickButton {
    84     onClicked: {
    84     onClicked: {
    85       tickButton.visible = false;
    85       tickButton.visible = false;
       
    86     }
       
    87   }
       
    88 
       
    89   Timer {
       
    90     id: advancingTimer
       
    91 
       
    92     interval: 100
       
    93     repeat: true
       
    94     running: !tickButton.visible
       
    95 
       
    96     onTriggered: {
    86       gameView.tick(100);
    97       gameView.tick(100);
       
    98       gameView.update();
    87     }
    99     }
    88   }
   100   }
    89 
   101 
    90   gameButton {
   102   gameButton {
    91     visible: !gameView.engineInstance
   103     visible: !gameView.engineInstance