fix shop vendor buying on non-click (#2906)
* fix shop vendor buying on non-click * :trollface: --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
parent
2013a26ec2
commit
a2367725d6
|
|
@ -7,6 +7,7 @@ using Robust.Client.Player;
|
|||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
using Robust.Shared.Input;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Timing;
|
||||
using System.Numerics;
|
||||
|
|
@ -43,7 +44,11 @@ public sealed partial class ShopVendorWindow : FancyWindow
|
|||
VendingContents.SearchBar = SearchBar;
|
||||
VendingContents.DataFilterCondition += DataFilterCondition;
|
||||
VendingContents.GenerateItem += GenerateButton;
|
||||
VendingContents.ItemKeyBindDown += (args, data) => OnItemSelected?.Invoke(((ShopVendorListingData) data).Index);
|
||||
VendingContents.ItemKeyBindDown += (args, data) =>
|
||||
{
|
||||
if (args.Function == EngineKeyFunctions.UIClick)
|
||||
OnItemSelected?.Invoke(((ShopVendorListingData) data).Index);
|
||||
};
|
||||
}
|
||||
|
||||
public void SetEntity(EntityUid owner)
|
||||
|
|
|
|||
Loading…
Reference in New Issue