mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-19 21:33:54 -07:00
[Room][UserList] Introduce style delegate for user list
- Allow users to set a card name and parameters as their background banner - Allow mods to white/blacklist cards - Allow toggling back to the old display style Took 7 minutes Took 28 seconds Took 2 minutes Took 2 minutes
This commit is contained in:
parent
bdb0f12f66
commit
aff93a4435
35 changed files with 1977 additions and 26 deletions
|
|
@ -11,6 +11,7 @@
|
|||
#include <QLabel>
|
||||
#include <QPushButton>
|
||||
#include <QWidget>
|
||||
#include <libcockatrice/protocol/pb/serverinfo_user.pb.h>
|
||||
#include <libcockatrice/network/server/remote/user_level.h>
|
||||
#include <libcockatrice/utility/days_years_between.h>
|
||||
|
||||
|
|
@ -25,9 +26,11 @@ private:
|
|||
bool editable;
|
||||
QLabel avatarPic, userLevelIcon, nameLabel, realNameLabel1, realNameLabel2, countryLabel1, countryLabel2,
|
||||
countryLabel3, userLevelLabel1, userLevelLabel2, accountAgeLabel1, accountAgeLabel2;
|
||||
QPushButton editButton, passwordButton, avatarButton;
|
||||
QPushButton editButton, passwordButton, avatarButton, bannerCardButton;
|
||||
QPixmap avatarPixmap;
|
||||
bool hasAvatar;
|
||||
ServerInfo_User currentUserInfo;
|
||||
bool hasUserInfo = false;
|
||||
UserLevelFlags userLevel;
|
||||
ServerInfo_User::PawnColorsOverride pawnColors;
|
||||
QString privLevel;
|
||||
|
|
@ -47,6 +50,7 @@ private slots:
|
|||
void actEditInternal(const Response &r);
|
||||
void actPassword();
|
||||
void actAvatar();
|
||||
void actBannerCard();
|
||||
public slots:
|
||||
void updateInfo(const ServerInfo_User &user);
|
||||
void updateInfo(const QString &userName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue