1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-05 10:45:35 +00:00

Rename onFrame() to update() to make WindowManager consistent with other managers

This commit is contained in:
Andrei Kortunov 2020-05-26 16:54:04 +04:00
parent 000e44a18e
commit dcfc4cc5dd
4 changed files with 4 additions and 4 deletions

View file

@ -181,7 +181,7 @@ bool OMW::Engine::frame(float frametime)
osg::Timer_t afterWorldTick = osg::Timer::instance()->tick();
// update GUI
mEnvironment.getWindowManager()->onFrame(frametime);
mEnvironment.getWindowManager()->update(frametime);
unsigned int frameNumber = mViewer->getFrameStamp()->getFrameNumber();
osg::Stats* stats = mViewer->getViewerStats();

View file

@ -251,7 +251,7 @@ namespace MWBase
/// returns the index of the pressed button or -1 if no button was pressed (->MessageBoxmanager->InteractiveMessageBox)
virtual int readPressedButton() = 0;
virtual void onFrame (float frameDuration) = 0;
virtual void update (float duration) = 0;
/**
* Fetches a GMST string from the store, if there is no setting with the given

View file

@ -956,7 +956,7 @@ namespace MWGui
mHud->setPlayerPos(x, y, u, v);
}
void WindowManager::onFrame (float frameDuration)
void WindowManager::update (float frameDuration)
{
bool gameRunning = MWBase::Environment::get().getStateManager()->getState()!=
MWBase::StateManager::State_NoGame;

View file

@ -280,7 +280,7 @@ namespace MWGui
virtual int readPressedButton (); ///< returns the index of the pressed button or -1 if no button was pressed (->MessageBoxmanager->InteractiveMessageBox)
virtual void onFrame (float frameDuration);
virtual void update (float duration);
/**
* Fetches a GMST string from the store, if there is no setting with the given