-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInstantTooltipLabel.h
35 lines (31 loc) · 961 Bytes
/
InstantTooltipLabel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef INSTANTTOOLTIPLABEL_H
#define INSTANTTOOLTIPLABEL_H
#include <QLabel>
#include "AbilityTooltip.h"
#include "Ability.h"
#include "PlayerCharacter.h"
class InstantTooltipLabel : public QLabel
{
AbilityTooltip *tooltip = nullptr;
Ability *ability = nullptr;
PlayerCharacter *PC = nullptr;
std::vector<Enemy *> *enemyListPtr = nullptr;
void resetPcBuffsAndResources();
public:
InstantTooltipLabel(QWidget *parent)
: QLabel(parent)
{
this->tooltip = new AbilityTooltip();
this->tooltip->hide();
this->setMouseTracking(true);
}
void enterEvent(QEvent *event);
void leaveEvent(QEvent *event);
Ability *getAbility() const;
void setAbility(Ability *value);
PlayerCharacter *getPC() const;
void setPC(PlayerCharacter *value);
std::vector<Enemy *> *getEnemyListPtr() const;
void setEnemyListPtr(std::vector<Enemy *> *value);
};
#endif // INSTANTTOOLTIPLABEL_H