diff --git a/apps/openmw/mwgui/hud.cpp b/apps/openmw/mwgui/hud.cpp
index 77b8c6ccb..a541901ea 100644
--- a/apps/openmw/mwgui/hud.cpp
+++ b/apps/openmw/mwgui/hud.cpp
@@ -471,6 +471,7 @@ namespace MWGui
mWeaponSpellBox->setVisible(true);
}
+ mWeapBox->clearUserStrings();
mWeapBox->setUserString("ToolTipType", "ItemPtr");
mWeapBox->setUserData(item);
@@ -515,12 +516,14 @@ namespace MWGui
MWWorld::Ptr player = world->getPlayerPtr();
mWeapImage->setItem(MWWorld::Ptr());
- if (player.getClass().getNpcStats(player).isWerewolf())
- mWeapImage->setIcon("icons\\k\\tx_werewolf_hand.dds");
- else
- mWeapImage->setIcon("icons\\k\\stealth_handtohand.dds");
+ std::string icon = (player.getClass().getNpcStats(player).isWerewolf()) ? "icons\\k\\tx_werewolf_hand.dds" : "icons\\k\\stealth_handtohand.dds";
+ mWeapImage->setIcon(icon);
mWeapBox->clearUserStrings();
+ mWeapBox->setUserString("ToolTipType", "Layout");
+ mWeapBox->setUserString("ToolTipLayout", "HandToHandToolTip");
+ mWeapBox->setUserString("Caption_HandToHandText", itemName);
+ mWeapBox->setUserString("ImageTexture_HandToHandImage", icon);
}
void HUD::setCrosshairVisible(bool visible)
diff --git a/files/mygui/openmw_tooltips.layout b/files/mygui/openmw_tooltips.layout
index d761d90b7..dca5ebc66 100644
--- a/files/mygui/openmw_tooltips.layout
+++ b/files/mygui/openmw_tooltips.layout
@@ -65,6 +65,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+