Revision: 1368 http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1368&view=rev Author: rorthomas Date: 2010-05-04 22:33:23 +0000 (Tue, 04 May 2010)
Log Message: ----------- faster loader at startup (no smooth) Modified Paths: -------------- trunk/source/main/SelectorWindow.cpp trunk/source/main/SelectorWindow.h Modified: trunk/source/main/SelectorWindow.cpp =================================================================== --- trunk/source/main/SelectorWindow.cpp 2010-05-04 22:05:22 UTC (rev 1367) +++ trunk/source/main/SelectorWindow.cpp 2010-05-04 22:33:23 UTC (rev 1368) @@ -33,6 +33,7 @@ { initialiseByAttributes(this); + visibleCounter=0; mMainWidget->setVisible(false); // setup controls @@ -625,11 +626,16 @@ mTruckConfigs.clear(); MyGUI::InputManager::getInstance().setKeyFocusWidget(mMainWidget); mMainWidget->setEnabledSilent(true); - mMainWidget->castType<MyGUI::Window>()->setVisibleSmooth(true); + // first time fast + if(!visibleCounter) + mMainWidget->castType<MyGUI::Window>()->setVisible(true); + else + mMainWidget->castType<MyGUI::Window>()->setVisibleSmooth(true); if (type != LT_SKIN) mSelectedTruck = nullptr; // when in skin, we still need the info mLoaderType = type; mSelectionDone = false; getData(); + visibleCounter++; } void SelectorWindow::hide() Modified: trunk/source/main/SelectorWindow.h =================================================================== --- trunk/source/main/SelectorWindow.h 2010-05-04 22:05:22 UTC (rev 1367) +++ trunk/source/main/SelectorWindow.h 2010-05-04 22:33:23 UTC (rev 1368) @@ -79,6 +79,7 @@ std::vector<Ogre::String> mTruckConfigs; Ogre::Camera *mCamera; Cache_Entry *mSelectedTruck; + int visibleCounter; Skin *mSelectedSkin; private: ATTRIBUTE_FIELD_WIDGET_NAME(SelectorWindow, mCacheSheet, "Cache"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ _______________________________________________ Rigsofrods-devel mailing list Rigsofrods-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel