mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-04 20:46:29 +03:00
Fixed wrong time elapsed in UIManager.
Fixed backgorunds drawable alpha. --HG-- branch : dev
This commit is contained in:
@@ -140,6 +140,7 @@ void UIBackground::draw( Rectf R, const Float& alpha ) {
|
||||
}
|
||||
|
||||
if ( NULL != mDrawable ) {
|
||||
mDrawable->setAlpha( alpha );
|
||||
mDrawable->draw( R.getPosition(), R.getSize() );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,6 +83,8 @@ void UIManager::init( Uint32 Flags, EE::Window::Window * window ) {
|
||||
|
||||
mCbId = mKM->pushCallback( cb::Make1( this, &UIManager::inputCallback ) );
|
||||
mResizeCb = mWindow->pushResizeCallback( cb::Make1( this, &UIManager::resizeControl ) );
|
||||
|
||||
mClock.restart();
|
||||
}
|
||||
|
||||
void UIManager::shutdown() {
|
||||
@@ -203,7 +205,7 @@ void UIManager::sendMsg( UIControl * Ctrl, const Uint32& Msg, const Uint32& Flag
|
||||
}
|
||||
|
||||
void UIManager::update() {
|
||||
mElapsed = mWindow->getElapsed();
|
||||
mElapsed = mClock.getElapsed();
|
||||
|
||||
bool wasDraggingControl = isControlDragging();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user