Update use secondary hotkey (#11592)

This commit is contained in:
metalgearsloth
2022-09-29 16:06:34 +10:00
committed by GitHub
parent ca108d4194
commit 77a4a71ae0
7 changed files with 9 additions and 9 deletions

View File

@@ -155,7 +155,7 @@ namespace Content.Client.Administration.Systems
if (function == EngineKeyFunctions.UIClick)
_clientConsoleHost.ExecuteCommand($"vv {uid}");
else if (function == EngineKeyFunctions.AltUse)
else if (function == EngineKeyFunctions.UseSecondary)
_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 == EngineKeyFunctions.AltUse)
else if (function == EngineKeyFunctions.UseSecondary)
_verbSystem.VerbMenu.OpenVerbMenu(uid, true);
else
return;

View File

@@ -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 == EngineKeyFunctions.AltUse)
else if (args.Event.Function == EngineKeyFunctions.UseSecondary)
{
_verbSystem.VerbMenu.OpenVerbMenu(selectedPlayer.EntityUid);
}

View File

@@ -68,7 +68,7 @@ namespace Content.Client.ContextMenu.UI
_cfg.OnValueChanged(CCVars.EntityMenuGroupingType, OnGroupingChanged, true);
CommandBinds.Builder
.Bind(EngineKeyFunctions.AltUse, new PointerInputCmdHandler(HandleOpenEntityMenu, outsidePrediction: true))
.Bind(EngineKeyFunctions.UseSecondary, new PointerInputCmdHandler(HandleOpenEntityMenu, outsidePrediction: true))
.Register<EntityMenuPresenter>();
}
@@ -113,7 +113,7 @@ namespace Content.Client.ContextMenu.UI
return;
// open verb menu?
if (args.Function == EngineKeyFunctions.AltUse)
if (args.Function == EngineKeyFunctions.UseSecondary)
{
_verbSystem.VerbMenu.OpenVerbMenu(entity.Value);
args.Handle();

View File

@@ -71,7 +71,7 @@ namespace Content.Client.Items.Managers
_entitySystemManager.GetEntitySystem<ExamineSystem>()
.DoExamine(item.Value);
}
else if (args.Function == EngineKeyFunctions.AltUse)
else if (args.Function == EngineKeyFunctions.UseSecondary)
{
_entitySystemManager.GetEntitySystem<VerbSystem>().VerbMenu.OpenVerbMenu(item.Value);
}

View File

@@ -105,7 +105,7 @@ namespace Content.Client.Options.UI.Tabs
AddHeader("ui-options-header-interaction-basic");
AddButton(EngineKeyFunctions.Use);
AddButton(EngineKeyFunctions.AltUse);
AddButton(EngineKeyFunctions.UseSecondary);
AddButton(ContentKeyFunctions.UseItemInHand);
AddButton(ContentKeyFunctions.AltUseItemInHand);
AddButton(ContentKeyFunctions.ActivateItemInWorld);

View File

@@ -80,7 +80,7 @@ public sealed partial class MeleeWeaponSystem : SharedMeleeWeaponSystem
}
var useDown = _inputSystem.CmdStates.GetState(EngineKeyFunctions.Use);
var altDown = _inputSystem.CmdStates.GetState(EngineKeyFunctions.AltUse);
var altDown = _inputSystem.CmdStates.GetState(EngineKeyFunctions.UseSecondary);
var currentTime = Timing.CurTime;
// Heavy attack.

View File

@@ -17,7 +17,7 @@ binds:
type: State
key: MouseLeft
canFocus: true
- function: AltUse
- function: UseSecondary
type: State
key: MouseRight
canFocus: true