mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-29 17:32:17 -07:00
Change things about resolution, address comments.
Took 45 minutes Took 12 minutes
This commit is contained in:
parent
cb8fe8305e
commit
80d44da729
36 changed files with 393 additions and 413 deletions
|
|
@ -252,12 +252,11 @@ void PlayerLogic::setDeck(const DeckList &_deck)
|
|||
|
||||
void PlayerLogic::setPlaymatFromProperties(const ServerInfo_PlayerProperties &props)
|
||||
{
|
||||
if (props.has_playmat_card_name() && !props.playmat_card_name().empty()) {
|
||||
remotePlaymatCard = {QString::fromStdString(props.playmat_card_name()),
|
||||
QString::fromStdString(props.playmat_card_provider_id())};
|
||||
remotePlaymatParams = {
|
||||
qBound(0.0, props.playmat_margin_pct_l(), 0.95), qBound(0.0, props.playmat_margin_pct_r(), 0.95),
|
||||
qBound(0.0, props.playmat_vertical_offset(), 1.0), qBound(0.1, props.playmat_zoom(), 4.0)};
|
||||
if (props.has_playmat_params() && !props.playmat_params().card_name().empty()) {
|
||||
const auto &pp = props.playmat_params();
|
||||
remotePlaymatCard = {QString::fromStdString(pp.card_name()), QString::fromStdString(pp.card_provider_id())};
|
||||
remotePlaymatParams = {qBound(0.0, pp.margin_pct_l(), 0.95), qBound(0.0, pp.margin_pct_r(), 0.95),
|
||||
qBound(0.0, pp.vertical_offset(), 1.0), qBound(0.1, pp.zoom(), 4.0)};
|
||||
hasRemotePlaymat = true;
|
||||
} else {
|
||||
remotePlaymatCard = CardRef{};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue