markdown 根据序列步骤更改窗口小部件可见性

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 根据序列步骤更改窗口小部件可见性相关的知识,希望对你有一定的参考价值。

$scope.showImages = function() {
  //calls StepImages function every 250ms
  interval = setInterval($scope.stepImages, 250);
}

$scope.stepImages = function() {
  console.log("Current Step: "+ $scope.app.view['Home'].wdg[__nameOfWidget__]['currentStep']);
  //replace __nameOfWidget__ with name of widget which contains sequence
  if ($scope.app.view['Home'].wdg[__nameOf3DWidget__]['currentStep']==1) {
      //shows first image and hides last image (for case that last image still up from previous play)
      $scope.view.wdg[__nameOfWidget1__]['visible']=true;
      $scope.view.wdg[__nameOfWidget4__['visible']=false;
    }
    else if ($scope.app.view['Home'].wdg[__nameOf3DWidget__]['currentStep']==2) {
    //hides image from first step and shows image in second step
      $scope.view.wdg[__nameOfWidget1__]['visible']=false;
      $scope.view.wdg[__nameOfWidget2__]['visible']=true;
    }
    else if ($scope.app.view['Home'].wdg[__nameOf3DWidget__]['currentStep']==3) {
    //hides image from second step and shows image in third step
      $scope.view.wdg[__nameOfWidget2__]['visible']=false;
      $scope.view.wdg[__nameOfWidget3__]['visible']=true;
    }
    else if ($scope.app.view['Home'].wdg[__nameOf3DWidget__]['currentStep']==4) {
    //hides image from third step and shows image in fourth step then stop stepImages() from being called every 250ms
      $scope.view.wdg[__nameOfWidget3__]['visible']=false;
      $scope.view.wdg[__nameOfWidget4__]['visible']=true;
      clearInterval(interval);
    }
    $scope.$applyAsync();
}
![](https://i.imgur.com/yRZB8sj.png)

以上是关于markdown 根据序列步骤更改窗口小部件可见性的主要内容,如果未能解决你的问题,请参考以下文章

markdown 根据序列步骤更改窗口小部件可见性

markdown 这是一个函数,它将根据播放动画所在序列中的哪个步骤切换资源的可见性

markdown 这是一个函数,它将根据播放动画所在序列中的哪个步骤切换资源的可见性

markdown 这是一个函数,它将根据播放动画所在序列中的哪个步骤切换资源的可见性

小部件可见性更改时在 MacOS 中呈现 Qt 错误表单

如何处理自定义 android 视图/小部件的可见性更改