mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-23 12:08:45 +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)
|
if(state == HERO || state == TOWN)
|
||||||
showGameStatus();
|
showGameStatus();
|
||||||
|
@ -154,7 +154,7 @@ private:
|
|||||||
|
|
||||||
void tick(uint32_t msPassed) override;
|
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 showPopupWindow(const Point & cursorPosition) override;
|
||||||
void hover(bool on) override;
|
void hover(bool on) override;
|
||||||
|
|
||||||
|
@ -270,7 +270,7 @@ void SelectionTab::toggleMode()
|
|||||||
redraw();
|
redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SelectionTab::clickPressed(const Point & cursorPosition)
|
void SelectionTab::clickReleased(const Point & cursorPosition)
|
||||||
{
|
{
|
||||||
int line = getLine();
|
int line = getLine();
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ public:
|
|||||||
SelectionTab(ESelectionScreen Type);
|
SelectionTab(ESelectionScreen Type);
|
||||||
void toggleMode();
|
void toggleMode();
|
||||||
|
|
||||||
void clickPressed(const Point & cursorPosition) override;
|
void clickReleased(const Point & cursorPosition) override;
|
||||||
void keyPressed(EShortcut key) override;
|
void keyPressed(EShortcut key) override;
|
||||||
void clickDouble(const Point & cursorPosition) override;
|
void clickDouble(const Point & cursorPosition) override;
|
||||||
bool receiveEvent(const Point & position, int eventType) const 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();
|
CCS->videoh->close();
|
||||||
CMainMenu::openCampaignLobby(campFile);
|
CMainMenu::openCampaignLobby(campFile);
|
||||||
|
@ -40,7 +40,7 @@ private:
|
|||||||
std::string video; // the resource name of the video
|
std::string video; // the resource name of the video
|
||||||
std::string hoverText;
|
std::string hoverText;
|
||||||
|
|
||||||
void clickPressed(const Point & cursorPosition) override;
|
void clickReleased(const Point & cursorPosition) override;
|
||||||
void hover(bool on) override;
|
void hover(bool on) override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user