@ -224,17 +224,6 @@ namespace MWGui
draw();
}
void LoadingScreen::indicateProgress()
{
float time = (static_cast<int>(mTimer.time_m()) % 2001) / 1000.f;
if (time > 1)
time = (time-2)*-1;
mProgressBar->setTrackSize(50);
mProgressBar->setScrollPosition(static_cast<size_t>(time * (mProgressBar->getScrollRange() - 1)));
bool LoadingScreen::needToDrawLoadingScreen()
if ( mTimer.time_m() <= mLastRenderTime + (1.0/mTargetFrameRate) * 1000.0)
@ -35,9 +35,6 @@ namespace MWGui
virtual void setLabel (const std::string& label);
/// Indicate that some progress has been made, without specifying how much
virtual void indicateProgress ();
virtual void loadingOn();
virtual void loadingOff();
@ -12,9 +12,6 @@ namespace Loading
virtual void loadingOn() {}
virtual void loadingOff() {}
virtual void indicateProgress () {}
virtual void setProgressRange (size_t range) {}
virtual void setProgress (size_t value) {}
virtual void increaseProgress (size_t increase = 1) {}