1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

implement skill, artifact, warmachine, spellbook

This commit is contained in:
Laserlicht
2025-11-08 19:05:57 +01:00
parent 0c9f5261a0
commit cfc0438468
13 changed files with 380 additions and 13 deletions

View File

@@ -19,6 +19,7 @@
#include "../render/Canvas.h"
#include "../render/ColorFilter.h"
#include "../render/Colors.h"
#include "../eventsSDL/InputHandler.h"
#include "../battle/BattleInterface.h"
@@ -150,7 +151,10 @@ void CPicture::addRClickCallback(const std::function<void()> & callback)
void CPicture::clickPressed(const Point & cursorPosition)
{
if(lCallback)
{
ENGINE->input().hapticFeedback();
lCallback();
}
}
void CPicture::showPopupWindow(const Point & cursorPosition)