From 26ec467df07c060154e70460c451bf9acb783497 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Mon, 1 May 2017 10:00:51 +0400 Subject: [PATCH] Tooltips: faction, magic effects layout fixes --- apps/openmw/mwgui/statswindow.cpp | 6 +++--- files/mygui/openmw_tooltips.layout | 28 ++++++++++++++++++++-------- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/apps/openmw/mwgui/statswindow.cpp b/apps/openmw/mwgui/statswindow.cpp index ce7ac915c..22140b8b2 100644 --- a/apps/openmw/mwgui/statswindow.cpp +++ b/apps/openmw/mwgui/statswindow.cpp @@ -618,13 +618,13 @@ namespace MWGui if (rankData.mSkill1 > 0) text += "\n#{sNeedOneSkill} " + MyGUI::utility::toString(rankData.mSkill1); if (rankData.mSkill2 > 0) - text += "\n#{sNeedTwoSkills} " + MyGUI::utility::toString(rankData.mSkill2); + text += " #{sand} #{sNeedTwoSkills} " + MyGUI::utility::toString(rankData.mSkill2); } } w->setUserString("ToolTipType", "Layout"); - w->setUserString("ToolTipLayout", "TextToolTip"); - w->setUserString("Caption_Text", text); + w->setUserString("ToolTipLayout", "FactionToolTip"); + w->setUserString("Caption_FactionText", text); } } diff --git a/files/mygui/openmw_tooltips.layout b/files/mygui/openmw_tooltips.layout index 3d40b3260..a7eeabfa5 100644 --- a/files/mygui/openmw_tooltips.layout +++ b/files/mygui/openmw_tooltips.layout @@ -18,11 +18,23 @@ - + - + - + + + + + + + + + + + + + @@ -263,9 +275,9 @@ - + - + @@ -274,13 +286,13 @@ - + - + @@ -288,7 +300,7 @@ - +