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); } } }
void MediaInterface::animateOn(){ resetIdleTimer(); show(); float opacityDiff = (1.0f - getOpacity()); if(opacityDiff > 0.0f){ tweenOpacity(1.0f, mAnimateDuration * opacityDiff, 0.0f, ci::EaseNone()); } }
void MediaInterface::animateOff(){ // TODO: settings tweenOpacity(0.0f, mAnimateDuration, 0.0f, ci::EaseNone(), [this]{ hide(); }); }
void TreeInspector::animateOff(){ tweenOpacity(0.0f, mGlobals.getAnimDur(), 0.0f, ci::EaseNone(), [this]{hide(); }); }
void StoryView::animateOff(){ tweenOpacity(0.0f, mGlobals.getSettingsLayout().getFloat("story_view:anim_time", 0, 0.35f), 0.0f, ci::EaseNone(), [this]{hide(); }); }
void StoryView::animateOn(){ show(); tweenOpacity(1.0f, mGlobals.getSettingsLayout().getFloat("story_view:anim_time", 0, 0.35f)); }