private void fadeOut() { this.showInteractiveCursor = true; this.currentState = PHOTO_VIEW_CLOSED; new GVROpacityAnimation(this, PHOTO_VIEW_FADE_ANIMATION_TIME, PHOTO_VIEW_OPACITY_VISIBLE) .start(this.gvrContext .getAnimationEngine()); }
protected void disappear() { new GVROpacityAnimation(this, PHOTO_VIEW_FADE_ANIMATION_TIME, PHOTO_VIEW_OPACITY_HIDE).start(this.gvrContext.getAnimationEngine()); this.gridItem.visible = false; this.showInteractiveCursor = false; }
public void showVideo() { new GVROpacityAnimation(this, DURATION, 1).start(gvrContext.getAnimationEngine()); active = true; }
public void hideVideo() { active = false; mediaPlayer.stop(); mediaPlayer.release(); mediaPlayer = null; new GVROpacityAnimation(this, .1f, 0).start(gvrContext.getAnimationEngine()); gvrContext.getMainScene().removeSceneObject(this); }
public void turnOnGUISeekbar() { seekbarHover.attachCollider(new GVRMeshCollider(gvrContext, false)); new GVROpacityAnimation(this, .1f, 1).start(gvrContext.getAnimationEngine()); new GVROpacityAnimation(seekbarHover, .1f, 1).start(gvrContext.getAnimationEngine()); new GVROpacityAnimation(playedSide, .1f, 1).start(gvrContext.getAnimationEngine()); }
public void turnOffGUIButtonUpdatingTexture() { new GVROpacityAnimation(playPauseButton, .1f, 0).start(gvrContext.getAnimationEngine()).setOnFinish(new GVROnFinish() { @Override public void finished(GVRAnimation animation) { renderTextureButton(PlayPauseButton.PAUSE_NORMAL, playPauseButton); } }); }
@Override public boolean visit(GVRComponent comp) { GVRRenderData rd = (GVRRenderData) comp; GVRSceneObject owner = rd.getOwnerObject(); try { new GVROpacityAnimation(owner, 1f, 1f).start(getGVRContext().getAnimationEngine()); } catch (UnsupportedOperationException ex) { // shader doesn't support opacity } return true; } };
private void executeAnimationOn() { finishAnimationOn = false; opacityAnimationOn.setOnFinish(getGVROnFinish()); opacityAnimationOn.start(getGVRContext().getAnimationEngine()); }
public void show(){ stop(); opacityShow = new GVROpacityAnimation(this, 1f, 1); opacityShow.setRepeatMode(GVRRepeatMode.ONCE); opacityShow.start(getGVRContext().getAnimationEngine()); }
public void hide(){ stop(); opacityHide = new GVROpacityAnimation(this, 0.3f, 0); opacityHide.setRepeatMode(GVRRepeatMode.ONCE); opacityHide.start(getGVRContext().getAnimationEngine()); } }
private void doFadeIn(final OnFadeFinish callback) { GVROpacityAnimation animation = new GVROpacityAnimation( getFadeable(), FADE_DURATION, 1); animation.setOnFinish(new GVROnFinish() { @Override public void finished(GVRAnimation gvrAnimation) { if (callback != null) { callback.onFadeFinished(); } } }); animation.start(getGVRContext().getAnimationEngine()); }
public void closeAction() { AudioClip.getInstance(getGVRContext().getContext()).playSound(AudioClip.getUITextDisappearSoundID(), 1.0f, 1.0f); new GVROpacityAnimation(description, TEXT_ANIMATION_TIME, 0f).start(getGVRContext().getAnimationEngine()); new GVROpacityAnimation(title, TEXT_ANIMATION_TIME, 0f).start(getGVRContext().getAnimationEngine()); isOpen = false; }
private void animateArrowOff() { if (opacityAnimationOff != null) { getGVRContext().getAnimationEngine().stop(opacityAnimationOff); } else { opacityAnimationOff = new GVROpacityAnimation(this, TIME_TO_OFF, 0); } opacityAnimationOff.start(getGVRContext().getAnimationEngine()); }
public void pressedRelese() { opacityAnimationOff = new GVROpacityAnimation(this, TIME_ANIMATION, 0); scaleAnimationSmaller = new GVRScaleAnimation(this, TIME_ANIMATION, SCALE_OBJECT - 0.1f); opacityAnimationOff.start(getGVRContext().getAnimationEngine()); scaleAnimationSmaller.start(getGVRContext().getAnimationEngine()); }
public void pressedRelese() { opacityAnimationOff = new GVROpacityAnimation(this, TIME_ANIMATION, 0); scaleAnimationSmaller = new GVRScaleAnimation(this, TIME_ANIMATION, SCALE_OBJECT - 0.1f); opacityAnimationOff.start(getGVRContext().getAnimationEngine()); scaleAnimationSmaller.start(getGVRContext().getAnimationEngine()); }
@Override public void hide() { radioGroup.hide(); removeChildObject(mGrid); previewArea.hide(); removeChildObject(previewArea); GVROpacityAnimation opacitypreviewArea = new GVROpacityAnimation(previewArea, 0.5f, 0); opacitypreviewArea.setRepeatMode(GVRRepeatMode.ONCE); opacitypreviewArea.start(getGVRContext().getAnimationEngine()); } }
@Override public void hide() { radioGroup.hide(); removeChildObject(mGrid); previewArea.hide(); removeChildObject(previewArea); GVROpacityAnimation opacitypreviewArea = new GVROpacityAnimation(previewArea, 0.5f, 0); opacitypreviewArea.setRepeatMode(GVRRepeatMode.ONCE); opacitypreviewArea.start(getGVRContext().getAnimationEngine()); } }
@Override public void show() { radioGroup.show(); removeChildObject(mGrid); removeChildObject(previewArea); addChildObject(mGrid); addChildObject(previewArea); previewArea.show(); GVROpacityAnimation opacitypreviewArea = new GVROpacityAnimation(previewArea, 1f, 1); opacitypreviewArea.setRepeatMode(GVRRepeatMode.ONCE); opacitypreviewArea.start(getGVRContext().getAnimationEngine()); }
@Override public void show() { radioGroup.show(); removeChildObject(mGrid); removeChildObject(previewArea); addChildObject(mGrid); addChildObject(previewArea); previewArea.show(); GVROpacityAnimation opacitypreviewArea = new GVROpacityAnimation(previewArea, 1f, 1); opacitypreviewArea.setRepeatMode(GVRRepeatMode.ONCE); opacitypreviewArea.start(getGVRContext().getAnimationEngine()); }