Skip to content
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

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

ShadowCommander
Copy link
Member

@ShadowCommander ShadowCommander commented May 14, 2024

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

  • I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase
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:

  • add: Added a search bar to the admin menu player tab.
  • tweak: Changed the player tab entry tooltip to be the player name, character name, identity, and job. Moved the time tooltip to the header.

@github-actions github-actions bot added Status: Needs Review This PR requires new reviews before it can be merged. Changes: UI Can be reviewed or fixed by people who are knowledgeable with UI design and removed Status: Needs Review This PR requires new reviews before it can be merged. labels May 14, 2024
Copy link
Contributor

@juliangiebel juliangiebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm.

Copy link
Contributor

@Chief-Engineer Chief-Engineer left a 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

@github-actions github-actions bot added the Status: Needs Review This PR requires new reviews before it can be merged. label May 23, 2024
Copy link
Contributor

@AJCM-git AJCM-git left a 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";
Copy link
Contributor

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";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes: UI Can be reviewed or fixed by people who are knowledgeable with UI design Status: Needs Review This PR requires new reviews before it can be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants