mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 10:53:51 +00:00
adjust tooltip skin, now is never transparent
This commit is contained in:
parent
38208653be
commit
c2b818373e
3 changed files with 50 additions and 13 deletions
|
@ -37,10 +37,10 @@ void ToolTips::setEnabled(bool enabled)
|
||||||
|
|
||||||
void ToolTips::onFrame(float frameDuration)
|
void ToolTips::onFrame(float frameDuration)
|
||||||
{
|
{
|
||||||
MyGUI::Gui::getInstance().destroyWidget(mDynamicToolTipBox);
|
while (mDynamicToolTipBox->getChildCount())
|
||||||
mDynamicToolTipBox = mMainWidget->createWidget<Widget>("HUD_Box",
|
{
|
||||||
IntCoord(0, 0, mMainWidget->getCoord().width, mMainWidget->getCoord().height),
|
MyGUI::Gui::getInstance().destroyWidget(mDynamicToolTipBox->getChildAt(0));
|
||||||
Align::Stretch, "DynamicToolTipBox");
|
}
|
||||||
|
|
||||||
// start by hiding everything
|
// start by hiding everything
|
||||||
for (unsigned int i=0; i < mMainWidget->getChildCount(); ++i)
|
for (unsigned int i=0; i < mMainWidget->getChildCount(); ++i)
|
||||||
|
|
|
@ -38,4 +38,41 @@
|
||||||
<!-- The interior of the box -->
|
<!-- The interior of the box -->
|
||||||
<Child type="Widget" skin="BlackBG" offset="2 2 36 36" align="ALIGN_STRETCH" name="Client"/>
|
<Child type="Widget" skin="BlackBG" offset="2 2 36 36" align="ALIGN_STRETCH" name="Client"/>
|
||||||
</Skin>
|
</Skin>
|
||||||
|
|
||||||
|
<Skin name="HUD_Box_NoTransp" size="40 40" texture="textures\menu_icon_equip.dds">
|
||||||
|
<BasisSkin type="TileRect" offset="0 0 40 2" align="ALIGN_TOP ALIGN_HSTRETCH">
|
||||||
|
<State name="normal" offset="2 2 40 2">
|
||||||
|
<Property key="TileSize" value="40 2"/>
|
||||||
|
<Property key="TileH" value="true"/>
|
||||||
|
<Property key="TileV" value="true"/>
|
||||||
|
</State>
|
||||||
|
</BasisSkin>
|
||||||
|
|
||||||
|
<BasisSkin type="TileRect" offset="0 38 40 2" align="ALIGN_BOTTOM ALIGN_HSTRETCH">
|
||||||
|
<State name="normal" offset="2 40 40 2">
|
||||||
|
<Property key="TileSize" value="40 2"/>
|
||||||
|
<Property key="TileH" value="true"/>
|
||||||
|
<Property key="TileV" value="true"/>
|
||||||
|
</State>
|
||||||
|
</BasisSkin>
|
||||||
|
|
||||||
|
<BasisSkin type="TileRect" offset="0 2 2 36" align="ALIGN_LEFT ALIGN_VSTRETCH">
|
||||||
|
<State name="normal" offset="2 4 2 36">
|
||||||
|
<Property key="TileSize" value="2 36"/>
|
||||||
|
<Property key="TileH" value="true"/>
|
||||||
|
<Property key="TileV" value="true"/>
|
||||||
|
</State>
|
||||||
|
</BasisSkin>
|
||||||
|
|
||||||
|
<BasisSkin type="TileRect" offset="38 2 2 36" align="ALIGN_RIGHT ALIGN_VSTRETCH">
|
||||||
|
<State name="normal" offset="40 4 2 36">
|
||||||
|
<Property key="TileSize" value="2 36"/>
|
||||||
|
<Property key="TileH" value="true"/>
|
||||||
|
<Property key="TileV" value="true"/>
|
||||||
|
</State>
|
||||||
|
</BasisSkin>
|
||||||
|
|
||||||
|
<!-- The interior of the box -->
|
||||||
|
<Child type="Widget" skin="DialogBG" offset="2 2 36 36" align="ALIGN_STRETCH" name="Client"/>
|
||||||
|
</Skin>
|
||||||
</MyGUI>
|
</MyGUI>
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
<Widget type="Widget" layer="Popup" position="0 0 300 300" name="_Main">
|
<Widget type="Widget" layer="Popup" position="0 0 300 300" name="_Main">
|
||||||
|
|
||||||
<!-- Dynamically constructed tooltip goes here -->
|
<!-- Dynamically constructed tooltip goes here -->
|
||||||
<Widget type="Widget" skin="HUD_Box" position="0 0 300 300" align="Stretch" name="DynamicToolTipBox">
|
<Widget type="Widget" skin="HUD_Box_NoTransp" position="0 0 300 300" align="Stretch" name="DynamicToolTipBox">
|
||||||
<Property key="Visible" value="false"/>
|
<Property key="Visible" value="false"/>
|
||||||
</Widget>
|
</Widget>
|
||||||
|
|
||||||
<!-- Text tooltip -->
|
<!-- Text tooltip -->
|
||||||
<Widget type="Widget" skin="HUD_Box" position="0 0 300 300" align="Stretch" name="TextToolTip">
|
<Widget type="Widget" skin="HUD_Box_NoTransp" position="0 0 300 300" align="Stretch" name="TextToolTip">
|
||||||
<Property key="Visible" value="false"/>
|
<Property key="Visible" value="false"/>
|
||||||
|
|
||||||
<Widget type="EditBox" skin="SandText" position="8 8 284 284" align="Left Top Stretch" name="Text">
|
<Widget type="EditBox" skin="SandText" position="8 8 284 284" align="Left Top Stretch" name="Text">
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
</Widget>
|
</Widget>
|
||||||
|
|
||||||
<!-- Text with centered caption tooltip -->
|
<!-- Text with centered caption tooltip -->
|
||||||
<Widget type="Widget" skin="HUD_Box" position="0 0 300 56" align="Stretch" name="TextWithCenteredCaptionToolTip">
|
<Widget type="Widget" skin="HUD_Box_NoTransp" position="0 0 300 56" align="Stretch" name="TextWithCenteredCaptionToolTip">
|
||||||
<Property key="Visible" value="false"/>
|
<Property key="Visible" value="false"/>
|
||||||
|
|
||||||
<Widget type="TextBox" skin="NormalText" position="8 8 284 18" align="Left Top HStretch" name="CenteredCaption">
|
<Widget type="TextBox" skin="NormalText" position="8 8 284 18" align="Left Top HStretch" name="CenteredCaption">
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
</Widget>
|
</Widget>
|
||||||
|
|
||||||
<!-- Class tooltip -->
|
<!-- Class tooltip -->
|
||||||
<Widget type="Widget" skin="HUD_Box" position="0 0 300 78" align="Stretch" name="ClassToolTip">
|
<Widget type="Widget" skin="HUD_Box_NoTransp" position="0 0 300 78" align="Stretch" name="ClassToolTip">
|
||||||
<Property key="Visible" value="false"/>
|
<Property key="Visible" value="false"/>
|
||||||
|
|
||||||
<Widget type="TextBox" skin="NormalText" position="8 8 284 18" align="Left Top HStretch" name="ClassName">
|
<Widget type="TextBox" skin="NormalText" position="8 8 284 18" align="Left Top HStretch" name="ClassName">
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
</Widget>
|
</Widget>
|
||||||
|
|
||||||
<!-- Health tooltip -->
|
<!-- Health tooltip -->
|
||||||
<Widget type="Widget" skin="HUD_Box" position="0 0 300 300" align="Stretch" name="HealthToolTip">
|
<Widget type="Widget" skin="HUD_Box_NoTransp" position="0 0 300 300" align="Stretch" name="HealthToolTip">
|
||||||
<Property key="Visible" value="false"/>
|
<Property key="Visible" value="false"/>
|
||||||
|
|
||||||
<Widget type="ImageBox" skin="ImageBox" position="8 8 32 32" align="Left Top" name="HealthImage"/>
|
<Widget type="ImageBox" skin="ImageBox" position="8 8 32 32" align="Left Top" name="HealthImage"/>
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
</Widget>
|
</Widget>
|
||||||
|
|
||||||
<!-- Attribute tooltip -->
|
<!-- Attribute tooltip -->
|
||||||
<Widget type="Widget" skin="HUD_Box" position="0 0 300 300" align="Stretch" name="AttributeToolTip">
|
<Widget type="Widget" skin="HUD_Box_NoTransp" position="0 0 300 300" align="Stretch" name="AttributeToolTip">
|
||||||
<Property key="Visible" value="false"/>
|
<Property key="Visible" value="false"/>
|
||||||
|
|
||||||
<Widget type="ImageBox" skin="ImageBox" position="8 8 32 32" align="Left Top" name="AttributeImage"/>
|
<Widget type="ImageBox" skin="ImageBox" position="8 8 32 32" align="Left Top" name="AttributeImage"/>
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
</Widget>
|
</Widget>
|
||||||
|
|
||||||
<!-- Skill tooltip -->
|
<!-- Skill tooltip -->
|
||||||
<Widget type="Widget" skin="HUD_Box" position="0 0 300 98" align="Stretch" name="SkillToolTip">
|
<Widget type="Widget" skin="HUD_Box_NoTransp" position="0 0 300 98" align="Stretch" name="SkillToolTip">
|
||||||
<Property key="Visible" value="false"/>
|
<Property key="Visible" value="false"/>
|
||||||
|
|
||||||
<Widget type="ImageBox" skin="ImageBox" position="8 8 32 32" align="Left Top" name="SkillImage"/>
|
<Widget type="ImageBox" skin="ImageBox" position="8 8 32 32" align="Left Top" name="SkillImage"/>
|
||||||
|
@ -135,7 +135,7 @@
|
||||||
</Widget>
|
</Widget>
|
||||||
|
|
||||||
<!-- Level tooltip -->
|
<!-- Level tooltip -->
|
||||||
<Widget type="Widget" skin="HUD_Box" position="0 0 300 58" align="Left Top" name="LevelToolTip">
|
<Widget type="Widget" skin="HUD_Box_NoTransp" position="0 0 300 58" align="Left Top" name="LevelToolTip">
|
||||||
<Property key="Visible" value="false"/>
|
<Property key="Visible" value="false"/>
|
||||||
<UserString key="DontResize" value="true"/>
|
<UserString key="DontResize" value="true"/>
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@
|
||||||
</Widget>
|
</Widget>
|
||||||
|
|
||||||
<!-- Birthsign tooltip -->
|
<!-- Birthsign tooltip -->
|
||||||
<Widget type="Widget" skin="HUD_Box" position="0 0 300 300" align="Stretch" name="BirthSignToolTip">
|
<Widget type="Widget" skin="HUD_Box_NoTransp" position="0 0 300 300" align="Stretch" name="BirthSignToolTip">
|
||||||
<Property key="Visible" value="false"/>
|
<Property key="Visible" value="false"/>
|
||||||
|
|
||||||
<!-- Birthsign image -->
|
<!-- Birthsign image -->
|
||||||
|
|
Loading…
Reference in a new issue