mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 23:53:56 +00:00
Oops, rotation center should be dynamic
This commit is contained in:
parent
9810eafe23
commit
ef1678e47e
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ namespace MWGui
|
||||||
mWidget->setImageTexture(texture);
|
mWidget->setImageTexture(texture);
|
||||||
MyGUI::ISubWidget* main = mWidget->getSubWidgetMain();
|
MyGUI::ISubWidget* main = mWidget->getSubWidgetMain();
|
||||||
MyGUI::RotatingSkin* rotatingSubskin = main->castType<MyGUI::RotatingSkin>();
|
MyGUI::RotatingSkin* rotatingSubskin = main->castType<MyGUI::RotatingSkin>();
|
||||||
rotatingSubskin->setCenter(MyGUI::IntPoint(16,16));
|
rotatingSubskin->setCenter(MyGUI::IntPoint(mSize.width/2,mSize.height/2));
|
||||||
rotatingSubskin->setAngle(Ogre::Degree(rotation).valueRadians());
|
rotatingSubskin->setAngle(Ogre::Degree(rotation).valueRadians());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue