1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

replaced clickPressed with clickReleased where applicable to H3

This commit is contained in:
Ivan Savenko 2023-07-09 17:55:39 +03:00
parent 18db944083
commit 0deeff30b9
6 changed files with 6 additions and 6 deletions

View File

@ -271,7 +271,7 @@ void CInfoBar::tick(uint32_t msPassed)
}
}
void CInfoBar::clickPressed(const Point & cursorPosition)
void CInfoBar::clickReleased(const Point & cursorPosition)
{
if(state == HERO || state == TOWN)
showGameStatus();

View File

@ -154,7 +154,7 @@ private:
void tick(uint32_t msPassed) override;
void clickPressed(const Point & cursorPosition) override;
void clickReleased(const Point & cursorPosition) override;
void showPopupWindow(const Point & cursorPosition) override;
void hover(bool on) override;

View File

@ -270,7 +270,7 @@ void SelectionTab::toggleMode()
redraw();
}
void SelectionTab::clickPressed(const Point & cursorPosition)
void SelectionTab::clickReleased(const Point & cursorPosition)
{
int line = getLine();

View File

@ -65,7 +65,7 @@ public:
SelectionTab(ESelectionScreen Type);
void toggleMode();
void clickPressed(const Point & cursorPosition) override;
void clickReleased(const Point & cursorPosition) override;
void keyPressed(EShortcut key) override;
void clickDouble(const Point & cursorPosition) override;
bool receiveEvent(const Point & position, int eventType) const override;

View File

@ -141,7 +141,7 @@ void CCampaignScreen::CCampaignButton::show(Canvas & to)
}
}
void CCampaignScreen::CCampaignButton::clickPressed(const Point & cursorPosition)
void CCampaignScreen::CCampaignButton::clickReleased(const Point & cursorPosition)
{
CCS->videoh->close();
CMainMenu::openCampaignLobby(campFile);

View File

@ -40,7 +40,7 @@ private:
std::string video; // the resource name of the video
std::string hoverText;
void clickPressed(const Point & cursorPosition) override;
void clickReleased(const Point & cursorPosition) override;
void hover(bool on) override;
public: