1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

show long press hints higher

kambala-decapitator/vcmi#29
This commit is contained in:
Andrey Filipenkov
2021-03-21 13:43:01 +03:00
parent 783c0eab26
commit 27b7cb8f1f

View File

@@ -308,6 +308,10 @@ void CRClickPopup::createAndPush(const std::string &txt, const CInfoWindow::TCom
auto temp = std::make_shared<CInfoWindow>(txt, player, comps);
temp->center(Point(GH.current->motion)); //center on mouse
#ifdef VCMI_IOS
// TODO: enable also for android?
temp->moveBy({0, -temp->pos.h / 2});
#endif
temp->fitToScreen(10);
GH.pushIntT<CRClickPopupInt>(temp);