mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-27 09:03:54 -07:00
some zone view changes going on
This commit is contained in:
parent
aed30708de
commit
224a4969bd
25 changed files with 754 additions and 365 deletions
|
|
@ -53,8 +53,12 @@ void GameScene::rearrange()
|
|||
if (localPlayer)
|
||||
PlayerProcessor::processPlayer(localPlayer, sceneWidth, sceneHeight, base);
|
||||
|
||||
playersRect = QRectF(0, 0, sceneWidth, sceneHeight);
|
||||
|
||||
zvLayout->setPos(QPointF(sceneWidth, 0));
|
||||
sceneWidth += zvLayout->size().width();
|
||||
if (zvLayout->size().height() > sceneHeight)
|
||||
sceneHeight = zvLayout->size().height();
|
||||
setSceneRect(sceneRect().x(), sceneRect().y(), sceneWidth, sceneHeight);
|
||||
|
||||
qDebug(QString("rearrange(): w=%1 h=%2").arg(sceneWidth).arg(sceneHeight).toLatin1());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue