mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
@@ -308,6 +308,10 @@ void CRClickPopup::createAndPush(const std::string &txt, const CInfoWindow::TCom
|
|||||||
|
|
||||||
auto temp = std::make_shared<CInfoWindow>(txt, player, comps);
|
auto temp = std::make_shared<CInfoWindow>(txt, player, comps);
|
||||||
temp->center(Point(GH.current->motion)); //center on mouse
|
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);
|
temp->fitToScreen(10);
|
||||||
|
|
||||||
GH.pushIntT<CRClickPopupInt>(temp);
|
GH.pushIntT<CRClickPopupInt>(temp);
|
||||||
|
Reference in New Issue
Block a user