mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 02:53:56 -07:00
reworked in-game avatar display
This commit is contained in:
parent
72223b3229
commit
02f2fb9764
15 changed files with 253 additions and 94 deletions
|
|
@ -11,7 +11,7 @@ class QMenu;
|
|||
class QAction;
|
||||
class ZoneViewZone;
|
||||
class TabGame;
|
||||
class Counter;
|
||||
class AbstractCounter;
|
||||
class ArrowItem;
|
||||
class CardZone;
|
||||
class StackZone;
|
||||
|
|
@ -148,7 +148,7 @@ private:
|
|||
QPixmap bgPixmap;
|
||||
QRectF bRect;
|
||||
|
||||
QMap<int, Counter *> counters;
|
||||
QMap<int, AbstractCounter *> counters;
|
||||
QMap<int, ArrowItem *> arrows;
|
||||
void rearrangeCounters();
|
||||
|
||||
|
|
@ -174,7 +174,7 @@ private:
|
|||
void eventDrawCards(Event_DrawCards *event);
|
||||
void eventRevealCards(Event_RevealCards *event);
|
||||
public:
|
||||
static const int counterAreaWidth = 65;
|
||||
static const int counterAreaWidth = 55;
|
||||
|
||||
enum { Type = typeOther };
|
||||
int type() const { return Type; }
|
||||
|
|
@ -186,8 +186,8 @@ public:
|
|||
void deleteCard(CardItem *c);
|
||||
void addZone(CardZone *z);
|
||||
|
||||
Counter *addCounter(ServerInfo_Counter *counter);
|
||||
Counter *addCounter(int counterId, const QString &name, QColor color, int radius, int value);
|
||||
AbstractCounter *addCounter(ServerInfo_Counter *counter);
|
||||
AbstractCounter *addCounter(int counterId, const QString &name, QColor color, int radius, int value);
|
||||
void delCounter(int counterId);
|
||||
void clearCounters();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue