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:
parent
18db944083
commit
0deeff30b9
@ -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();
|
||||
|
@ -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;
|
||||
|
||||
|
@ -270,7 +270,7 @@ void SelectionTab::toggleMode()
|
||||
redraw();
|
||||
}
|
||||
|
||||
void SelectionTab::clickPressed(const Point & cursorPosition)
|
||||
void SelectionTab::clickReleased(const Point & cursorPosition)
|
||||
{
|
||||
int line = getLine();
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user