]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Implement a playerpanel (#30238)
authornikthechampiongr <32041239+nikthechampiongr@users.noreply.github.com>
Fri, 9 Aug 2024 05:33:25 +0000 (08:33 +0300)
committerGitHub <noreply@github.com>
Fri, 9 Aug 2024 05:33:25 +0000 (15:33 +1000)
commitd1a60fafe78c4b3b8cf521601506b92840c2afe3
tree623558600b9fc753a6d77340af664b4c3171d2a9
parentb266c9b545522c8598c744d820d58bdd0da5f866
Implement a playerpanel (#30238)

* Basic structure for the player panel ui

* Ensure basic functionality

Player panel now receives and displays basic info

* Make whitelistcommands accept user ids

* Make PlayerPanel use GUIDs where possible

* Add functionality to most playerpanel buttons

* Implement remaining playerpanel features

* Localize everything

* Finish up

* Put command arguments in quotes

I am not sure if it's even possible to have something like a space in
them considering they are guids and usernames but sure why not

* Make playerpanel a verb

* Add Logs button to player panel

* Change Notesbutton text and make whitelistbutton a confirmtion button

* Add freeze button that does not mute the player

* Add sharedconnections counter to playerpanel

* Make the playetime format clearer

* Allow for copying of the a player's username

* Do minor cleanup

* Rearrange buttons

* Fix unfreeze button not updating

* Fix wrong localisation text

* "Fix" the same role ban counting multiple times

The way rolebans are stored is horrible.
As such if you ban someone from a departmenrt or something
role bans are individually placed for every role.
The only way I found to distinguish them is the bantime.
This is horrible but I do not want to rewrite how all the bans are
stored right now.

* Add Delete and Rejuvenate buttons to player panel

By popular demand

* Marginally improve ui

* Add logs

* review update

* Fix verb

* Fix double notes

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
12 files changed:
Content.Client/Administration/UI/PlayerPanel/PlayerPanel.xaml [new file with mode: 0644]
Content.Client/Administration/UI/PlayerPanel/PlayerPanel.xaml.cs [new file with mode: 0644]
Content.Client/Administration/UI/PlayerPanel/PlayerPanelEui.cs [new file with mode: 0644]
Content.Server/Administration/Commands/PlayerPanelCommand.cs [new file with mode: 0644]
Content.Server/Administration/PlayerPanelEui.cs [new file with mode: 0644]
Content.Server/Administration/Systems/AdminVerbSystem.cs
Content.Server/Whitelist/WhitelistCommands.cs
Content.Shared/Administration/PlayerPanelEuiState.cs [new file with mode: 0644]
Resources/Locale/en-US/administration/ui/actions.ftl
Resources/Locale/en-US/administration/ui/player-panel.ftl [new file with mode: 0644]
Resources/Locale/en-US/connection-messages.ftl
Resources/Locale/en-US/info/playerpanel.ftl [new file with mode: 0644]