Melee refactor (#10897)
Co-authored-by: metalgearsloth <metalgearsloth@gmail.com>
This commit is contained in:
@@ -155,7 +155,7 @@ namespace Content.Client.Administration.Systems
|
||||
|
||||
if (function == EngineKeyFunctions.UIClick)
|
||||
_clientConsoleHost.ExecuteCommand($"vv {uid}");
|
||||
else if (function == ContentKeyFunctions.OpenContextMenu)
|
||||
else if (function == EngineKeyFunctions.AltUse)
|
||||
_verbSystem.VerbMenu.OpenVerbMenu(uid, true);
|
||||
else
|
||||
return;
|
||||
@@ -173,7 +173,7 @@ namespace Content.Client.Administration.Systems
|
||||
|
||||
if (function == EngineKeyFunctions.UIClick)
|
||||
_clientConsoleHost.ExecuteCommand($"vv {uid}");
|
||||
else if (function == ContentKeyFunctions.OpenContextMenu)
|
||||
else if (function == EngineKeyFunctions.AltUse)
|
||||
_verbSystem.VerbMenu.OpenVerbMenu(uid, true);
|
||||
else
|
||||
return;
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace Content.Client.Administration.UI.CustomControls
|
||||
if (OverrideText != null && args.Button.Children.FirstOrDefault()?.Children?.FirstOrDefault() is Label label)
|
||||
label.Text = GetText(selectedPlayer);
|
||||
}
|
||||
else if (args.Event.Function == ContentKeyFunctions.OpenContextMenu)
|
||||
else if (args.Event.Function == EngineKeyFunctions.AltUse)
|
||||
{
|
||||
_verbSystem.VerbMenu.OpenVerbMenu(selectedPlayer.EntityUid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user