mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-26 08:41:35 +00:00
fixed some things
This commit is contained in:
parent
7c59b83419
commit
35f7216f2f
2 changed files with 3 additions and 2 deletions
|
@ -92,6 +92,7 @@ namespace MWGui
|
||||||
mBoughtItems.clear();
|
mBoughtItems.clear();
|
||||||
|
|
||||||
onWindowResize(static_cast<MyGUI::Window*>(mMainWidget));
|
onWindowResize(static_cast<MyGUI::Window*>(mMainWidget));
|
||||||
|
drawItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
void InventoryWindow::onWindowResize(MyGUI::Window* _sender)
|
void InventoryWindow::onWindowResize(MyGUI::Window* _sender)
|
||||||
|
@ -293,7 +294,7 @@ namespace MWGui
|
||||||
MyGUI::IntSize size = mAvatar->getSize();
|
MyGUI::IntSize size = mAvatar->getSize();
|
||||||
|
|
||||||
MWBase::Environment::get().getWorld()->updateCharacterPreview (size.width, size.height);
|
MWBase::Environment::get().getWorld()->updateCharacterPreview (size.width, size.height);
|
||||||
mAvatarImage->setSize(MyGUI::IntSize(512, 1024));
|
mAvatarImage->setSize(MyGUI::IntSize(std::max(mAvatar->getSize().width, 512), std::max(mAvatar->getSize().height, 1024)));
|
||||||
mAvatarImage->setImageTexture("CharacterPreview");
|
mAvatarImage->setImageTexture("CharacterPreview");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -368,7 +368,7 @@ NifOgre::EntityList NpcAnimation::insertBoundedPart(const std::string &mesh, int
|
||||||
|
|
||||||
void NpcAnimation::runAnimation(float timepassed)
|
void NpcAnimation::runAnimation(float timepassed)
|
||||||
{
|
{
|
||||||
//if(timeToChange > .2)
|
if(timeToChange > .2)
|
||||||
{
|
{
|
||||||
timeToChange = 0;
|
timeToChange = 0;
|
||||||
updateParts();
|
updateParts();
|
||||||
|
|
Loading…
Reference in a new issue