mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
hand counter
This commit is contained in:
parent
0d63bb7316
commit
aaf236d0b4
5 changed files with 14 additions and 0 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include "pilezone.h"
|
||||
#include "tablezone.h"
|
||||
#include "handzone.h"
|
||||
#include "handcounter.h"
|
||||
#include "cardlist.h"
|
||||
#include "tab_game.h"
|
||||
#include "protocol_items.h"
|
||||
|
|
@ -41,9 +42,13 @@ Player::Player(const QString &_name, int _id, bool _local, Client *_client, TabG
|
|||
PileZone *sb = new PileZone(this, "sb", false, false, this);
|
||||
sb->setVisible(false);
|
||||
|
||||
HandCounter *handCounter = new HandCounter(this);
|
||||
handCounter->setPos(base + QPointF(0, 3 * h));
|
||||
|
||||
table = new TableZone(this, this);
|
||||
connect(table, SIGNAL(sizeChanged()), this, SLOT(updateBoundingRect()));
|
||||
hand = new HandZone(this, (int) table->boundingRect().height(), this);
|
||||
connect(hand, SIGNAL(cardCountChanged()), handCounter, SLOT(updateNumber()));
|
||||
|
||||
base = QPointF(deck->boundingRect().width() + counterAreaWidth + 5, 0);
|
||||
hand->setPos(base);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue