mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-12 04:50:01 -08:00
[Refactor] Add card name, printing id, and color to CardState (#7433)
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
edb5caec8a
commit
5d0d466930
4 changed files with 35 additions and 8 deletions
|
|
@ -23,7 +23,6 @@ class AbstractCardItem : public ArrowTarget, public IAnimatedItem
|
|||
protected:
|
||||
CardState *state;
|
||||
int tapAngle;
|
||||
QString color;
|
||||
QColor bgColor;
|
||||
|
||||
private:
|
||||
|
|
@ -114,9 +113,9 @@ public:
|
|||
{
|
||||
return isHovered;
|
||||
}
|
||||
QString getColor() const
|
||||
[[nodiscard]] QString getColor() const
|
||||
{
|
||||
return color;
|
||||
return state->getColor();
|
||||
}
|
||||
void setColor(const QString &_color);
|
||||
bool getTapped() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue