forked from teamnwah/openmw-tes3coop
Add transparency for tooltips in game mode
This commit is contained in:
parent
6cb3c83248
commit
4cc8afd25d
1 changed files with 5 additions and 11 deletions
|
@ -378,17 +378,11 @@ namespace MWGui
|
||||||
{
|
{
|
||||||
mDynamicToolTipBox->setVisible(true);
|
mDynamicToolTipBox->setVisible(true);
|
||||||
|
|
||||||
if(mShowOwned == 1 || mShowOwned == 3)
|
// TODO: apply alpha to "owned" background
|
||||||
{
|
if((mShowOwned == 1 || mShowOwned == 3) && isFocusObject && checkOwned())
|
||||||
if(isFocusObject && checkOwned())
|
|
||||||
{
|
|
||||||
mDynamicToolTipBox->changeWidgetSkin("HUD_Box_NoTransp_Owned");
|
mDynamicToolTipBox->changeWidgetSkin("HUD_Box_NoTransp_Owned");
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
mDynamicToolTipBox->changeWidgetSkin(MWBase::Environment::get().getWindowManager()->isGuiMode() ? "HUD_Box_NoTransp" : "HUD_Box");
|
||||||
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;
|
||||||
|
|
Loading…
Reference in a new issue