mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 19:53:53 +00:00
LoadingScreen: remove indicateProgress, not used
This commit is contained in:
parent
375caf037d
commit
ccbba5e926
3 changed files with 0 additions and 17 deletions
|
@ -224,17 +224,6 @@ namespace MWGui
|
||||||
draw();
|
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)));
|
|
||||||
draw();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool LoadingScreen::needToDrawLoadingScreen()
|
bool LoadingScreen::needToDrawLoadingScreen()
|
||||||
{
|
{
|
||||||
if ( mTimer.time_m() <= mLastRenderTime + (1.0/mTargetFrameRate) * 1000.0)
|
if ( mTimer.time_m() <= mLastRenderTime + (1.0/mTargetFrameRate) * 1000.0)
|
||||||
|
|
|
@ -35,9 +35,6 @@ namespace MWGui
|
||||||
|
|
||||||
virtual void setLabel (const std::string& label);
|
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 loadingOn();
|
||||||
virtual void loadingOff();
|
virtual void loadingOff();
|
||||||
|
|
||||||
|
|
|
@ -12,9 +12,6 @@ namespace Loading
|
||||||
virtual void loadingOn() {}
|
virtual void loadingOn() {}
|
||||||
virtual void loadingOff() {}
|
virtual void loadingOff() {}
|
||||||
|
|
||||||
/// Indicate that some progress has been made, without specifying how much
|
|
||||||
virtual void indicateProgress () {}
|
|
||||||
|
|
||||||
virtual void setProgressRange (size_t range) {}
|
virtual void setProgressRange (size_t range) {}
|
||||||
virtual void setProgress (size_t value) {}
|
virtual void setProgress (size_t value) {}
|
||||||
virtual void increaseProgress (size_t increase = 1) {}
|
virtual void increaseProgress (size_t increase = 1) {}
|
||||||
|
|
Loading…
Reference in a new issue