1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Replaced clickReleased with clickPressed where applicable in H3

This commit is contained in:
Ivan Savenko
2023-07-09 17:48:25 +03:00
parent 9449899098
commit 18db944083
18 changed files with 39 additions and 54 deletions

View File

@@ -51,7 +51,7 @@ CSpellWindow::InteractiveArea::InteractiveArea(const Rect & myRect, std::functio
owner = _owner;
}
void CSpellWindow::InteractiveArea::clickReleased(const Point & cursorPosition)
void CSpellWindow::InteractiveArea::clickPressed(const Point & cursorPosition)
{
onLeft();
}
@@ -471,7 +471,7 @@ CSpellWindow::SpellArea::SpellArea(Rect pos, CSpellWindow * owner)
CSpellWindow::SpellArea::~SpellArea() = default;
void CSpellWindow::SpellArea::clickReleased(const Point & cursorPosition)
void CSpellWindow::SpellArea::clickPressed(const Point & cursorPosition)
{
if(mySpell)
{