mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Merge pull request #2310 from IvanSavenko/left_click_refactor
Left click input refactor
This commit is contained in:
@@ -114,10 +114,9 @@ void CCommanderSkillIcon::setObject(std::shared_ptr<CIntObject> newObject)
|
||||
redraw();
|
||||
}
|
||||
|
||||
void CCommanderSkillIcon::clickLeft(tribool down, bool previousState)
|
||||
void CCommanderSkillIcon::clickPressed(const Point & cursorPosition)
|
||||
{
|
||||
if(down)
|
||||
callback();
|
||||
callback();
|
||||
}
|
||||
|
||||
static std::string skillToFile(int skill, int level, bool selected)
|
||||
|
||||
Reference in New Issue
Block a user