@@ -119,14 +119,13 @@ namespace Content.Client.UserInterface
|
|||||||
|
|
||||||
private void HandKeyBindDown(GUIBoundKeyEventArgs args, string handIndex)
|
private void HandKeyBindDown(GUIBoundKeyEventArgs args, string handIndex)
|
||||||
{
|
{
|
||||||
args.Handle();
|
|
||||||
|
|
||||||
if (!TryGetHands(out var hands))
|
if (!TryGetHands(out var hands))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (args.Function == ContentKeyFunctions.MouseMiddle)
|
if (args.Function == ContentKeyFunctions.MouseMiddle)
|
||||||
{
|
{
|
||||||
hands.SendChangeHand(handIndex);
|
hands.SendChangeHand(handIndex);
|
||||||
|
args.Handle();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -136,12 +135,16 @@ namespace Content.Client.UserInterface
|
|||||||
if (args.Function == EngineKeyFunctions.UIClick && hands.ActiveIndex != handIndex)
|
if (args.Function == EngineKeyFunctions.UIClick && hands.ActiveIndex != handIndex)
|
||||||
{
|
{
|
||||||
hands.SendChangeHand(handIndex);
|
hands.SendChangeHand(handIndex);
|
||||||
|
args.Handle();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_itemSlotManager.OnButtonPressed(args, entity))
|
if (_itemSlotManager.OnButtonPressed(args, entity))
|
||||||
|
{
|
||||||
|
args.Handle();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (args.Function == EngineKeyFunctions.UIClick)
|
if (args.Function == EngineKeyFunctions.UIClick)
|
||||||
{
|
{
|
||||||
@@ -153,6 +156,7 @@ namespace Content.Client.UserInterface
|
|||||||
{
|
{
|
||||||
hands.AttackByInHand(handIndex);
|
hands.AttackByInHand(handIndex);
|
||||||
}
|
}
|
||||||
|
args.Handle();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,8 +65,6 @@ namespace Content.Client.UserInterface
|
|||||||
|
|
||||||
public bool OnButtonPressed(GUIBoundKeyEventArgs args, IEntity item)
|
public bool OnButtonPressed(GUIBoundKeyEventArgs args, IEntity item)
|
||||||
{
|
{
|
||||||
args.Handle();
|
|
||||||
|
|
||||||
if (item == null)
|
if (item == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@@ -99,6 +97,7 @@ namespace Content.Client.UserInterface
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
args.Handle();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user