Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Draylar
Copy link

@Draylar Draylar commented Jan 11, 2022

Hello! This PR introduces a new search bar to the player list HUD, which can be used to filter through players available in the menu. This is particularly helpful when you have a large number of players and need to quickly find specific users for shots.

image

image

The code additions contain a new GuiTextField added to the top of the main content pane. The GUI-construction logic has been moved to a separate method, which is re-called when the search field changes. I attempted to stay in line with the existing code formatting as much as possible.

I have tested these additions on a replay file with ~1,500 players present and it works great. Let me know if you have any revision requests - thanks!

* Also needs a translation - entry for en_US is replaymod.gui.playeroverview.search=Search Players. Want me to PR to the translations repository as well?

Copy link
Member

@Johni0702 Johni0702 left a comment

Choose a reason for hiding this comment

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

Looks good. I'll add in the translation when I merge it.

@Johni0702 Johni0702 added this to the v2.7.0 milestone Feb 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants