mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 03:28:49 -07:00
Change visible buttons in game lobby depending on if deck is loaded (#5480)
* rename method * delete unused method * refactor * increase margins * change visible buttons depending on if deck is loaded * correctly send the ReadyStart command on unload * fix force start button still being visible
This commit is contained in:
parent
cb64a5eea0
commit
ee938342f3
2 changed files with 73 additions and 46 deletions
|
|
@ -50,8 +50,12 @@ private:
|
|||
VisualDeckStorageWidget *visualDeckStorageWidget;
|
||||
TabGame *parentGame;
|
||||
int playerId;
|
||||
|
||||
void sendReadyStartCommand(bool ready);
|
||||
private slots:
|
||||
void replaceDeckStorageWithDeckView(QMouseEvent *event, DeckPreviewWidget *instance);
|
||||
void switchToDeckSelectView();
|
||||
void switchToDeckLoadedView();
|
||||
void loadVisualDeck(QMouseEvent *event, DeckPreviewWidget *instance);
|
||||
void loadLocalDeck();
|
||||
void loadRemoteDeck();
|
||||
void unloadDeck();
|
||||
|
|
@ -69,7 +73,6 @@ signals:
|
|||
public:
|
||||
DeckViewContainer(int _playerId, TabGame *parent);
|
||||
void retranslateUi();
|
||||
void setButtonsVisible(bool _visible);
|
||||
void setReadyStart(bool ready);
|
||||
void readyAndUpdate();
|
||||
void setSideboardLocked(bool locked);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue