mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-09 21:44:54 +00:00
Merge branch 'effecttooltip' into 'master'
Don't center spell and enchanted item effect lists (bug #4310) Closes #4310 See merge request OpenMW/openmw!2227
This commit is contained in:
commit
c22b9e273f
@ -15,6 +15,7 @@
|
|||||||
Bug #3905: Great House Dagoth issues
|
Bug #3905: Great House Dagoth issues
|
||||||
Bug #4203: Resurrecting an actor doesn't close the loot GUI
|
Bug #4203: Resurrecting an actor doesn't close the loot GUI
|
||||||
Bug #4227: Spellcasting restrictions are checked before spellcasting animations are played
|
Bug #4227: Spellcasting restrictions are checked before spellcasting animations are played
|
||||||
|
Bug #4310: Spell description is centered
|
||||||
Bug #4374: Player rotation reset when nearing area that hasn't been loaded yet
|
Bug #4374: Player rotation reset when nearing area that hasn't been loaded yet
|
||||||
Bug #4376: Moved actors don't respawn in their original cells
|
Bug #4376: Moved actors don't respawn in their original cells
|
||||||
Bug #4389: NPC's lips do not move if his head model has the NiBSAnimationNode root node
|
Bug #4389: NPC's lips do not move if his head model has the NiBSAnimationNode root node
|
||||||
|
@ -494,7 +494,7 @@ namespace MWGui
|
|||||||
int flag = info.isPotion ? Widgets::MWEffectList::EF_NoTarget : 0;
|
int flag = info.isPotion ? Widgets::MWEffectList::EF_NoTarget : 0;
|
||||||
flag |= info.isIngredient ? Widgets::MWEffectList::EF_NoMagnitude : 0;
|
flag |= info.isIngredient ? Widgets::MWEffectList::EF_NoMagnitude : 0;
|
||||||
flag |= info.isIngredient ? Widgets::MWEffectList::EF_Constant : 0;
|
flag |= info.isIngredient ? Widgets::MWEffectList::EF_Constant : 0;
|
||||||
effectsWidget->createEffectWidgets(effectItems, effectArea, coord, true, flag);
|
effectsWidget->createEffectWidgets(effectItems, effectArea, coord, info.isPotion || info.isIngredient, flag);
|
||||||
totalSize.height += coord.top-6;
|
totalSize.height += coord.top-6;
|
||||||
totalSize.width = std::max(totalSize.width, coord.width);
|
totalSize.width = std::max(totalSize.width, coord.width);
|
||||||
}
|
}
|
||||||
@ -513,7 +513,7 @@ namespace MWGui
|
|||||||
|
|
||||||
std::vector<MyGUI::Widget*> enchantEffectItems;
|
std::vector<MyGUI::Widget*> enchantEffectItems;
|
||||||
int flag = (enchant->mData.mType == ESM::Enchantment::ConstantEffect) ? Widgets::MWEffectList::EF_Constant : 0;
|
int flag = (enchant->mData.mType == ESM::Enchantment::ConstantEffect) ? Widgets::MWEffectList::EF_Constant : 0;
|
||||||
enchantWidget->createEffectWidgets(enchantEffectItems, enchantArea, coord, true, flag);
|
enchantWidget->createEffectWidgets(enchantEffectItems, enchantArea, coord, false, flag);
|
||||||
totalSize.height += coord.top-6;
|
totalSize.height += coord.top-6;
|
||||||
totalSize.width = std::max(totalSize.width, coord.width);
|
totalSize.width = std::max(totalSize.width, coord.width);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user