mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-04 20:43: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
|
|
@ -1,4 +1,5 @@
|
|||
syntax = "proto2";
|
||||
|
||||
message ServerInfo_User {
|
||||
enum UserLevelFlag {
|
||||
IsNothing = 0;
|
||||
|
|
@ -12,6 +13,13 @@ message ServerInfo_User {
|
|||
optional string left_side = 1;
|
||||
optional string right_side = 2;
|
||||
};
|
||||
message CardArtParams {
|
||||
optional string card_name = 1;
|
||||
optional double margin_pct_l = 2 [default = 0.33];
|
||||
optional double margin_pct_r = 3 [default = 0.02];
|
||||
optional double vertical_offset = 4 [default = 0.35];
|
||||
optional double zoom = 5 [default = 1.0];
|
||||
};
|
||||
|
||||
optional string name = 1;
|
||||
optional uint32 user_level = 2;
|
||||
|
|
@ -28,4 +36,5 @@ message ServerInfo_User {
|
|||
optional string clientid = 13;
|
||||
optional string privlevel = 14;
|
||||
optional PawnColorsOverride pawn_colors = 15;
|
||||
}
|
||||
optional CardArtParams card_art_params = 16;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue