mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
another new method
This commit is contained in:
parent
42363c34bd
commit
f10246ec74
2 changed files with 10 additions and 0 deletions
|
|
@ -382,6 +382,15 @@ void DeckViewContainer::setReadyStart(bool ready)
|
||||||
sideboardLockButton->setEnabled(!readyStartButton->getState() && readyStartButton->isEnabled());
|
sideboardLockButton->setEnabled(!readyStartButton->getState() && readyStartButton->isEnabled());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the ready start to true, then sends the ready command so the server responds to the update
|
||||||
|
*/
|
||||||
|
void DeckViewContainer::readyAndUpdate()
|
||||||
|
{
|
||||||
|
setReadyStart(true);
|
||||||
|
readyStart();
|
||||||
|
}
|
||||||
|
|
||||||
void DeckViewContainer::setSideboardLocked(bool locked)
|
void DeckViewContainer::setSideboardLocked(bool locked)
|
||||||
{
|
{
|
||||||
sideboardLockButton->setState(!locked);
|
sideboardLockButton->setState(!locked);
|
||||||
|
|
|
||||||
|
|
@ -110,6 +110,7 @@ public:
|
||||||
void retranslateUi();
|
void retranslateUi();
|
||||||
void setButtonsVisible(bool _visible);
|
void setButtonsVisible(bool _visible);
|
||||||
void setReadyStart(bool ready);
|
void setReadyStart(bool ready);
|
||||||
|
void readyAndUpdate();
|
||||||
void setSideboardLocked(bool locked);
|
void setSideboardLocked(bool locked);
|
||||||
void setDeck(const DeckLoader &deck);
|
void setDeck(const DeckLoader &deck);
|
||||||
void loadDeckFromFile(const QString &filePath);
|
void loadDeckFromFile(const QString &filePath);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue