forked from mirror/openmw-tes3mp
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);
|
||||
|
||||
if(mShowOwned == 1 || mShowOwned == 3)
|
||||
{
|
||||
if(isFocusObject && checkOwned())
|
||||
{
|
||||
// TODO: apply alpha to "owned" background
|
||||
if((mShowOwned == 1 || mShowOwned == 3) && isFocusObject && checkOwned())
|
||||
mDynamicToolTipBox->changeWidgetSkin("HUD_Box_NoTransp_Owned");
|
||||
}
|
||||
else
|
||||
{
|
||||
mDynamicToolTipBox->changeWidgetSkin("HUD_Box_NoTransp");
|
||||
}
|
||||
}
|
||||
mDynamicToolTipBox->changeWidgetSkin(MWBase::Environment::get().getWindowManager()->isGuiMode() ? "HUD_Box_NoTransp" : "HUD_Box");
|
||||
|
||||
std::string caption = info.caption;
|
||||
std::string image = info.icon;
|
||||
|
|
Loading…
Reference in a new issue