Towelie
11-04-2011 00:05:05
Hi, i'm new in MyGUI, i'm trying to create Odometer. I've made Layout in LayoutEditor, trying to load it in my project, but it throw exception:
But other layout work normaly.
02:48:17 | Core | Error | Layer 'odometer' is not found | ..\..\MyGUI\MyGUIEngine\src\MyGUI_LayerManager.cpp | 154
02:48:17 | Core | Warning | Texture 'arrow.psd' have non power of two size | ..\..\MyGUI\MyGUIEngine\src\MyGUI_TextureUtility.cpp |
But other layout work normaly.
//init MyGUI
mPlatform = new MyGUI::OgrePlatform();
mPlatform->initialise(mRenderWindow, mSceneMgr);
mGui = new MyGUI::Gui();
mGui->initialise();
MyGUI::ResourceManager::getInstance().load("MyGUI_BlackOrangeTheme.xml");
MyGUI::LayoutManager::getInstance().loadLayout("Panel.layout");
//........
MyGUI::LayoutManager::getInstance().loadLayout("Odometer.layout");
mBackground = MyGUI::Gui::getInstance().findWidget<MyGUI::ImageBox> ("SpeedArrow");
mArrow = MyGUI::Gui::getInstance().findWidget<MyGUI::ImageBox> ("adometrBackground");
mBackground->setCoord(x, y, width, height);