소스 검색

replaced clickPressed with clickReleased where applicable to H3

Ivan Savenko 2 년 전
부모
커밋
0deeff30b9

+ 1 - 1
client/adventureMap/CInfoBar.cpp

@@ -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();

+ 1 - 1
client/adventureMap/CInfoBar.h

@@ -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;
 

+ 1 - 1
client/lobby/SelectionTab.cpp

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

+ 1 - 1
client/lobby/SelectionTab.h

@@ -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;

+ 1 - 1
client/mainmenu/CCampaignScreen.cpp

@@ -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);

+ 1 - 1
client/mainmenu/CCampaignScreen.h

@@ -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: