Fix right click not showing the context menu in AHelps, players tab and objects tab (#22798)
* Fix right clicks in AHelp window * Fix player tab right click * Fix objects tab right click
This commit is contained in:
@@ -28,7 +28,7 @@ namespace Content.Client.Administration.UI.Tabs.PlayerTab
|
||||
private bool _ascending = true;
|
||||
private bool _showDisconnected;
|
||||
|
||||
public event Action<ButtonEventArgs>? OnEntryPressed;
|
||||
public event Action<PlayerTabEntry, GUIBoundKeyEventArgs>? OnEntryKeyBindDown;
|
||||
|
||||
public PlayerTab()
|
||||
{
|
||||
@@ -123,7 +123,7 @@ namespace Content.Client.Administration.UI.Tabs.PlayerTab
|
||||
player.Connected,
|
||||
player.PlaytimeString);
|
||||
entry.PlayerEntity = player.NetEntity;
|
||||
entry.OnPressed += args => OnEntryPressed?.Invoke(args);
|
||||
entry.OnKeyBindDown += args => OnEntryKeyBindDown?.Invoke(entry, args);
|
||||
entry.ToolTip = Loc.GetString("player-tab-entry-tooltip");
|
||||
PlayerList.AddChild(entry);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user