summaryrefslogtreecommitdiff
path: root/src/gui/textpopup.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-27 15:54:25 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-28 09:34:21 +0100
commit474442f1a49d29d85de769c4fbb3aa8636877b49 (patch)
tree2d8218d3648f370d31009831c86fc4c6b9f30033 /src/gui/textpopup.h
parentdac3832265fa17de8d3b9d3ea8d930b83efe9c17 (diff)
downloadmana-474442f1a49d29d85de769c4fbb3aa8636877b49.tar.gz
mana-474442f1a49d29d85de769c4fbb3aa8636877b49.tar.bz2
mana-474442f1a49d29d85de769c4fbb3aa8636877b49.tar.xz
mana-474442f1a49d29d85de769c4fbb3aa8636877b49.zip
Fixed size and child positions for various popups
Most prominently, fixes the tooltips on the window buttons being clipped due to their position being slightly outside of the clipping children area. And fixes NPC tooltips from having a lot of empty space below the NPC name. Also reduced the space between texts in the item tooltip to match the padding rather than being an entire empty line.
Diffstat (limited to 'src/gui/textpopup.h')
-rw-r--r--src/gui/textpopup.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gui/textpopup.h b/src/gui/textpopup.h
index b12d4475..b1c6b2b3 100644
--- a/src/gui/textpopup.h
+++ b/src/gui/textpopup.h
@@ -41,13 +41,9 @@ class TextPopup : public Popup
/**
* Sets the text to be displayed.
*/
- void show(int x, int y, const std::string &str1)
- { show(x, y, str1, (const char*)""); }
-
- /**
- * Sets the text to be displayed.
- */
- void show(int x, int y, const std::string &str1, const std::string &str2);
+ void show(int x, int y,
+ const std::string &str1,
+ const std::string &str2 = std::string());
void mouseMoved(gcn::MouseEvent &mouseEvent) override;