From aa5fcc664991786c1595fe4270ff07c3a483e284 Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Mon, 1 Aug 2022 11:00:14 +0300 Subject: [PATCH] Don't center spell and enchanted item effect lists (bug #4310) --- CHANGELOG.md | 1 + apps/openmw/mwgui/tooltips.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 08fa1ab9f7..c2f0b28bf7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ Bug #3905: Great House Dagoth issues Bug #4203: Resurrecting an actor doesn't close the loot GUI 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 #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 diff --git a/apps/openmw/mwgui/tooltips.cpp b/apps/openmw/mwgui/tooltips.cpp index 0b37e97245..353a88004e 100644 --- a/apps/openmw/mwgui/tooltips.cpp +++ b/apps/openmw/mwgui/tooltips.cpp @@ -494,7 +494,7 @@ namespace MWGui int flag = info.isPotion ? Widgets::MWEffectList::EF_NoTarget : 0; flag |= info.isIngredient ? Widgets::MWEffectList::EF_NoMagnitude : 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.width = std::max(totalSize.width, coord.width); } @@ -513,7 +513,7 @@ namespace MWGui std::vector enchantEffectItems; 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.width = std::max(totalSize.width, coord.width);