forked from mirror/openmw-tes3mp
color tooltip red when taking item would result in crime
This commit is contained in:
parent
111cf5462b
commit
df077f8649
3 changed files with 29 additions and 0 deletions
|
@ -370,6 +370,15 @@ namespace MWGui
|
||||||
{
|
{
|
||||||
mDynamicToolTipBox->setVisible(true);
|
mDynamicToolTipBox->setVisible(true);
|
||||||
|
|
||||||
|
if(checkOwned())
|
||||||
|
{
|
||||||
|
mDynamicToolTipBox->changeWidgetSkin("HUD_Box_NoTransp_R");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mDynamicToolTipBox->changeWidgetSkin("HUD_Box_NoTransp");
|
||||||
|
}
|
||||||
|
|
||||||
std::string caption = info.caption;
|
std::string caption = info.caption;
|
||||||
std::string image = info.icon;
|
std::string image = info.icon;
|
||||||
int imageSize = (image != "") ? info.imageSize : 0;
|
int imageSize = (image != "") ? info.imageSize : 0;
|
||||||
|
|
|
@ -32,4 +32,16 @@
|
||||||
|
|
||||||
</Resource>
|
</Resource>
|
||||||
|
|
||||||
|
<Resource type="ResourceSkin" name="HUD_Box_NoTransp_R" size="40 40">
|
||||||
|
|
||||||
|
<!-- The interior of the box -->
|
||||||
|
|
||||||
|
<Child type="Widget" skin="DialogBG_R" offset="0 0 40 40" align="Stretch" name="Client"/>
|
||||||
|
|
||||||
|
<!-- Borders -->
|
||||||
|
|
||||||
|
<Child type="Widget" skin="MW_Box" offset="0 0 40 40" align="Left Stretch" name="Client"/>
|
||||||
|
|
||||||
|
</Resource>
|
||||||
|
|
||||||
</MyGUI>
|
</MyGUI>
|
||||||
|
|
|
@ -129,6 +129,14 @@
|
||||||
</BasisSkin>
|
</BasisSkin>
|
||||||
</Resource>
|
</Resource>
|
||||||
|
|
||||||
|
<!-- Defines a red background -->
|
||||||
|
<Resource type="ResourceSkin" name="DialogBG_R" size="8 8" texture="white">
|
||||||
|
<Property key="Colour" value="0.3 0 0 1"/>
|
||||||
|
<BasisSkin type="MainSkin" offset="0 0 8 8">
|
||||||
|
<State name="normal" offset="0 0 8 8"/>
|
||||||
|
</BasisSkin>
|
||||||
|
</Resource>
|
||||||
|
|
||||||
<!-- These define the dialog borders -->
|
<!-- These define the dialog borders -->
|
||||||
<Resource type="ResourceSkin" name="DB_B" size="512 4" texture="textures\menu_thick_border_bottom.dds">
|
<Resource type="ResourceSkin" name="DB_B" size="512 4" texture="textures\menu_thick_border_bottom.dds">
|
||||||
<BasisSkin type="TileRect" offset="0 0 512 4" align="Stretch">
|
<BasisSkin type="TileRect" offset="0 0 512 4" align="Stretch">
|
||||||
|
|
Loading…
Reference in a new issue