icaromotta
25-04-2011 23:00:46
Hi,
When I use RotateSkin, before of the I to use the function setAngle(), the image rotates 90 grades.
Anyone can help me? I am having than to rotate the image manually after inicialization.
Thanks.
When I use RotateSkin, before of the I to use the function setAngle(), the image rotates 90 grades.
MyGUI::IntSize dim = GRender->getMyGUI()->getViewSize();
canvasHud = GRender->getMyGUI()->createWidget<MyGUI::Widget>("PanelEmpty", MyGUI::IntCoord(0, 0, 200, 600), MyGUI::Align::Top | MyGUI::Align::Right, "Main");
back = canvasHud->createWidget<MyGUI::StaticImage>("RotatingSkin", MyGUI::IntCoord(0, 0, 100, 100), MyGUI::Align::Default, "Statistic");
back->setImageTexture("seta.png");
MyGUI::ISubWidget* main = back->getSubWidgetMain();
rotateZ = main->castType<MyGUI::RotatingSkin>();
rotateZ->setCenter(MyGUI::IntPoint(50, 50));
//the image back to normal
rotateZ->setAngle(Ogre::Math::DegreesToRadians(90));
textBack = canvasHud->createWidget<MyGUI::StaticText>("TextBox", 0, 210, 105, 20, MyGUI::Align::Default, "Popup");
textBack->setTextColour(MyGUI::Colour(1,0,0,0));
textBack->setCaption("0 graus");
Anyone can help me? I am having than to rotate the image manually after inicialization.

Thanks.