Example #1
0
void ScrollBar::doAutoHide(const bool shouldBeHidden){
	if(shouldBeHidden){
		if(!mAutoHidden){
			mAutoHidden = true;
			tweenOpacity(0.0f, 0.35f, 0.0f, ci::easeNone, [this]{hide(); });
		}
	} else {
		if(mAutoHidden){
			mAutoHidden = false;
			show();
			tweenOpacity(1.0f, 0.35f);
		}
	}

}
Example #2
0
void MediaInterface::animateOn(){
	resetIdleTimer();
	show();

	float opacityDiff = (1.0f - getOpacity());
	if(opacityDiff > 0.0f){
		tweenOpacity(1.0f, mAnimateDuration * opacityDiff, 0.0f, ci::EaseNone());
	}
}
Example #3
0
void MediaInterface::animateOff(){
	// TODO: settings
	tweenOpacity(0.0f, mAnimateDuration, 0.0f, ci::EaseNone(), [this]{ hide(); });
}
Example #4
0
void TreeInspector::animateOff(){
	tweenOpacity(0.0f, mGlobals.getAnimDur(), 0.0f, ci::EaseNone(), [this]{hide(); });
}
Example #5
0
void StoryView::animateOff(){
	tweenOpacity(0.0f, mGlobals.getSettingsLayout().getFloat("story_view:anim_time", 0, 0.35f), 0.0f, ci::EaseNone(), [this]{hide(); });
}
Example #6
0
void StoryView::animateOn(){
	show();
	tweenOpacity(1.0f, mGlobals.getSettingsLayout().getFloat("story_view:anim_time", 0, 0.35f));
}