Ver Fonte

show long press hints higher

kambala-decapitator/vcmi#29
Andrey Filipenkov há 4 anos atrás
pai
commit
27b7cb8f1f
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      client/windows/InfoWindows.cpp

+ 4 - 0
client/windows/InfoWindows.cpp

@@ -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);