-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add search filter to the admin menu player tab #28030
base: master
Are you sure you want to change the base?
Add search filter to the admin menu player tab #28030
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm.
Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTab.xaml.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conceptual approval, unfortunately I don't have time to meaningfully review the actual code but I'm sure it's fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to do a more through dive but this looks good
{ | ||
Title = $"{sel.CharacterName} / {sel.Username}"; | ||
Title = "None selected"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GetString
CharacterLabel.Text = player.CharacterName; | ||
if (player.IdentityName != player.CharacterName) | ||
CharacterLabel.Text += $" [{player.IdentityName}]"; | ||
AntagonistLabel.Text = player.Antag ? "YES" : "NO"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
About the PR
Adds a search bar filter that searches player name, character name, character identity, and character job.
Why / Balance
Technical details
Implements a new control called SearchListContainer that adds search functionality to a ListContainer.
Reworks the player tab to use SearchListContainer.
Fix PlayerListControl handling when the selected button is deleted.
Media
Content.Client_v4aJd0dIlv.mp4
Breaking changes
Changelog
Make sure to take this Changelog template out of the comment block in order for it to show up.
🆑
ADMIN: