| 20 | } |
| 21 | |
| 22 | void DemoKeeper::createScene() |
| 23 | { |
| 24 | base::BaseDemoManager::createScene(); |
| 25 | const MyGUI::VectorWidgetPtr& root = MyGUI::LayoutManager::getInstance().loadLayout("HelpPanel.layout"); |
| 26 | root.at(0)->findWidget("Text")->castType<MyGUI::TextBox>()->setCaption( |
| 27 | "Move mouse to rotate skin. Right mouse click to set new center."); |
| 28 | |
| 29 | MyGUI::Window* window = MyGUI::Gui::getInstance().createWidget<MyGUI::Window>( |
| 30 | "WindowCS", |
| 31 | MyGUI::IntCoord(100, 100, 400, 400), |
| 32 | MyGUI::Align::Default, |
| 33 | "Main"); |
| 34 | window->setMinSize(100, 100); |
| 35 | |
| 36 | image = window->createWidget<MyGUI::ImageBox>( |
| 37 | "RotatingSkin", |
| 38 | MyGUI::IntCoord(150, 150, 100, 150), |
| 39 | MyGUI::Align::Default /*, "Main"*/); |
| 40 | image->setImageTexture("Wallpaper.png"); |
| 41 | |
| 42 | MyGUI::ISubWidget* main = image->getSubWidgetMain(); |
| 43 | rotato = main->castType<MyGUI::RotatingSkin>(); |
| 44 | } |
| 45 | |
| 46 | void DemoKeeper::injectMousePress(int _absx, int _absy, MyGUI::MouseButton _id) |
| 47 | { |
nothing calls this directly
no test coverage detected