1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

assembling art qol

This commit is contained in:
SoundSSGood
2025-08-10 17:19:55 +02:00
parent b90e3857fd
commit 04ed758c41
11 changed files with 37 additions and 16 deletions

View File

@@ -220,6 +220,11 @@ void EventDispatcher::dispatchClosePopup(const Point & position)
{
bool popupOpen = ENGINE->windows().isTopWindowPopup(); // popup can already be closed for mouse dragging with RMB
if(popupOpen)
{
ENGINE->windows().popWindows(1);
}
auto hlp = rclickable;
for(auto & i : hlp)
@@ -229,9 +234,6 @@ void EventDispatcher::dispatchClosePopup(const Point & position)
i->closePopupWindow(!popupOpen);
}
if(popupOpen)
ENGINE->windows().popWindows(1);
}
void EventDispatcher::handleLeftButtonClick(const Point & position, int tolerance, bool isPressed)