Tooltips: faction, magic effects layout fixes

0.6.1
Andrei Kortunov 8 years ago
parent 987677db75
commit 26ec467df0

@ -618,13 +618,13 @@ namespace MWGui
if (rankData.mSkill1 > 0) if (rankData.mSkill1 > 0)
text += "\n#{sNeedOneSkill} " + MyGUI::utility::toString(rankData.mSkill1); text += "\n#{sNeedOneSkill} " + MyGUI::utility::toString(rankData.mSkill1);
if (rankData.mSkill2 > 0) 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("ToolTipType", "Layout");
w->setUserString("ToolTipLayout", "TextToolTip"); w->setUserString("ToolTipLayout", "FactionToolTip");
w->setUserString("Caption_Text", text); w->setUserString("Caption_FactionText", text);
} }
} }

@ -18,11 +18,23 @@
</Widget> </Widget>
<!-- Text tooltip, multiline --> <!-- Text tooltip, multiline -->
<Widget type="VBox" skin="HUD_Box_NoTransp" position="0 0 300 300" align="Stretch" name="TextToolTip"> <Widget type="VBox" skin="HUD_Box_NoTransp" position="0 0 0 0" align="Stretch" name="TextToolTip">
<Property key="AutoResize" value="true"/> <Property key="AutoResize" value="true"/>
<Property key="Padding" value="8"/> <Property key="Padding" value="6"/>
<Widget type="AutoSizedEditBox" skin="SandText" position="8 8 284 284" align="Left Top" name="Text"> <Widget type="AutoSizedEditBox" skin="SandText" position="8 8 268 0" align="Left Top" name="Text">
<Property key="MultiLine" value="true"/>
<Property key="WordWrap" value="true"/>
<Property key="TextAlign" value="Left Top"/>
</Widget>
</Widget>
<!-- Faction tooltip -->
<Widget type="VBox" skin="HUD_Box_NoTransp" position="0 0 0 0" align="Stretch" name="FactionToolTip">
<Property key="AutoResize" value="true"/>
<Property key="Padding" value="12"/>
<Widget type="AutoSizedEditBox" skin="SandText" position="8 8 436 0" align="Left Top" name="FactionText">
<Property key="MultiLine" value="true"/> <Property key="MultiLine" value="true"/>
<Property key="WordWrap" value="true"/> <Property key="WordWrap" value="true"/>
<Property key="TextAlign" value="Left Top"/> <Property key="TextAlign" value="Left Top"/>
@ -263,9 +275,9 @@
</Widget> </Widget>
<!-- Magic effect tooltip --> <!-- Magic effect tooltip -->
<Widget type="VBox" skin="HUD_Box_NoTransp" position="0 0 300 52" align="Stretch" name="MagicEffectToolTip"> <Widget type="VBox" skin="HUD_Box_NoTransp" position="0 0 0 0" align="Stretch" name="MagicEffectToolTip">
<Property key="AutoResize" value="true"/> <Property key="AutoResize" value="true"/>
<Property key="Padding" value="8"/> <Property key="Padding" value="12"/>
<Widget type="HBox"> <Widget type="HBox">
<UserString key="HStretch" value="true"/> <UserString key="HStretch" value="true"/>
@ -274,13 +286,13 @@
<Widget type="ImageBox" skin="ImageBox" position="8 8 32 32" align="Left Top" name="MagicEffectImage"/> <Widget type="ImageBox" skin="ImageBox" position="8 8 32 32" align="Left Top" name="MagicEffectImage"/>
<Widget type="VBox"> <Widget type="VBox">
<Widget type="AutoSizedTextBox" skin="NormalText" position="44 8 252 16" align="Left Top" name="MagicEffectName"> <Widget type="AutoSizedTextBox" skin="NormalText" position="44 8 404 16" align="Left Top" name="MagicEffectName">
<Property key="TextAlign" value="Left"/> <Property key="TextAlign" value="Left"/>
<UserString key="HStretch" value="true"/> <UserString key="HStretch" value="true"/>
</Widget> </Widget>
<Widget type="AutoSizedTextBox" skin="SandText" position="44 24 252 16" align="Left Top" name="MagicEffectSchool"> <Widget type="AutoSizedTextBox" skin="SandText" position="44 24 404 16" align="Left Top" name="MagicEffectSchool">
<Property key="TextAlign" value="Left"/> <Property key="TextAlign" value="Left"/>
<UserString key="HStretch" value="true"/> <UserString key="HStretch" value="true"/>
</Widget> </Widget>
@ -288,7 +300,7 @@
</Widget> </Widget>
<Widget type="AutoSizedEditBox" skin="SandText" position="8 44 284 0" align="Left Top" name="MagicEffectDescription"> <Widget type="AutoSizedEditBox" skin="SandText" position="8 44 436 0" align="Left Top" name="MagicEffectDescription">
<Property key="MultiLine" value="true"/> <Property key="MultiLine" value="true"/>
<Property key="WordWrap" value="true"/> <Property key="WordWrap" value="true"/>
<Property key="TextAlign" value="Left Top"/> <Property key="TextAlign" value="Left Top"/>

Loading…
Cancel
Save