summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemshortcutcontainer.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-05-09 09:55:39 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-05-09 09:57:08 +0200
commitf0f2589451aeab54995ff2e8f384d1523fffd87a (patch)
tree00661de97871341c34324d899b457e6571025653 /src/gui/widgets/itemshortcutcontainer.h
parent3f630c76de06a0cbda163342b5ae0bf166aaad9f (diff)
downloadmana-fix-item-tooltip-visibility.tar.gz
mana-fix-item-tooltip-visibility.tar.bz2
mana-fix-item-tooltip-visibility.tar.xz
mana-fix-item-tooltip-visibility.zip
Fixed tooltip visibility logic for shortcut and inventory windowsfix-item-tooltip-visibility
* When hovering an empty box in the shortcut window, the tooltip of a previously hovered non-empty box would stay visible. * When hovering to the right of a row of inventory items, the tooltip for the left-most item on the next row would be displayed. Also added some padding to shift the text and item icon a little in the shortcut window when using the Jewelry theme.
Diffstat (limited to 'src/gui/widgets/itemshortcutcontainer.h')
-rw-r--r--src/gui/widgets/itemshortcutcontainer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/itemshortcutcontainer.h b/src/gui/widgets/itemshortcutcontainer.h
index 63d9e0ef..a01857db 100644
--- a/src/gui/widgets/itemshortcutcontainer.h
+++ b/src/gui/widgets/itemshortcutcontainer.h
@@ -67,6 +67,8 @@ class ItemShortcutContainer : public ShortcutContainer
void mouseExited(gcn::MouseEvent &event) override;
void mouseMoved(gcn::MouseEvent &event) override;
+ Item *getItemAt(int x, int y) const;
+
bool mItemClicked = false;
Item *mItemMoved = nullptr;