using file-scoped namespaces
This commit is contained in:
@@ -4,26 +4,25 @@ using EFT.UI.Ragfair;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace UIFixes.ContextMenus
|
||||
namespace UIFixes;
|
||||
|
||||
public class EmptySlotMenu(Slot slot, ItemContextAbstractClass itemContext, ItemUiContext itemUiContext, Action closeAction) : BaseItemInfoInteractions(itemContext, itemUiContext, closeAction)
|
||||
{
|
||||
public class EmptySlotMenu(Slot slot, ItemContextAbstractClass itemContext, ItemUiContext itemUiContext, Action closeAction) : BaseItemInfoInteractions(itemContext, itemUiContext, closeAction)
|
||||
private static readonly List<EItemInfoButton> Actions = [EItemInfoButton.LinkedSearch];
|
||||
|
||||
private readonly Slot slot = slot;
|
||||
|
||||
public override IEnumerable<EItemInfoButton> AvailableInteractions => Actions;
|
||||
|
||||
public override void ExecuteInteractionInternal(EItemInfoButton interaction)
|
||||
{
|
||||
private static readonly List<EItemInfoButton> Actions = [EItemInfoButton.LinkedSearch];
|
||||
|
||||
private readonly Slot slot = slot;
|
||||
|
||||
public override IEnumerable<EItemInfoButton> AvailableInteractions => Actions;
|
||||
|
||||
public override void ExecuteInteractionInternal(EItemInfoButton interaction)
|
||||
switch (interaction)
|
||||
{
|
||||
switch (interaction)
|
||||
{
|
||||
case EItemInfoButton.LinkedSearch:
|
||||
Search(new(EFilterType.LinkedSearch, slot.ParentItem.TemplateId + ":" + slot.Id, true));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
case EItemInfoButton.LinkedSearch:
|
||||
Search(new(EFilterType.LinkedSearch, slot.ParentItem.TemplateId + ":" + slot.Id, true));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user