mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
interface & client tab for replay transfer
This commit is contained in:
parent
faf6b2c5cb
commit
c6c6a970c6
36 changed files with 702 additions and 52 deletions
|
|
@ -957,6 +957,14 @@ CardItem *TabGame::getCard(int playerId, const QString &zoneName, int cardId) co
|
|||
return zone->getCard(cardId, QString());
|
||||
}
|
||||
|
||||
QString TabGame::getTabText() const
|
||||
{
|
||||
if (replay)
|
||||
return tr("Replay %1: %2").arg(gameId).arg(gameDescription);
|
||||
else
|
||||
return tr("Game %1: %2").arg(gameId).arg(gameDescription);
|
||||
}
|
||||
|
||||
Player *TabGame::getActiveLocalPlayer() const
|
||||
{
|
||||
Player *active = players.value(activePlayer, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue