mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-29 17:32:17 -07:00
Add command zone visibility and filtering to game lobby
This commit is contained in:
parent
127d8a5f5a
commit
1ba839ca20
9 changed files with 35 additions and 3 deletions
|
|
@ -94,6 +94,17 @@ bool GameFiltersSettings::isHideOpenDecklistGames() const
|
|||
return previous == QVariant() ? false : previous.toBool();
|
||||
}
|
||||
|
||||
void GameFiltersSettings::setHideCommandZoneGames(bool hide)
|
||||
{
|
||||
setValue(hide, "hide_command_zone_games");
|
||||
}
|
||||
|
||||
bool GameFiltersSettings::isHideCommandZoneGames() const
|
||||
{
|
||||
QVariant previous = getValue("hide_command_zone_games");
|
||||
return previous == QVariant() ? false : previous.toBool();
|
||||
}
|
||||
|
||||
void GameFiltersSettings::setGameNameFilter(QString gameName)
|
||||
{
|
||||
setValue(gameName, "gameNameFilter");
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ public:
|
|||
bool isHideIgnoredUserGames() const;
|
||||
bool isHideNotBuddyCreatedGames() const;
|
||||
bool isHideOpenDecklistGames() const;
|
||||
bool isHideCommandZoneGames() const;
|
||||
QString getGameNameFilter() const;
|
||||
QStringList getCreatorNameFilters() const;
|
||||
int getMinPlayers() const;
|
||||
|
|
@ -37,6 +38,7 @@ public:
|
|||
void setHideBuddiesOnlyGames(bool hide);
|
||||
void setHideIgnoredUserGames(bool hide);
|
||||
void setHideOpenDecklistGames(bool hide);
|
||||
void setHideCommandZoneGames(bool hide);
|
||||
void setHideFullGames(bool hide);
|
||||
void setHideGamesThatStarted(bool hide);
|
||||
void setHidePasswordProtectedGames(bool hide);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue