| | | 1 | | <div> |
| | | 2 | | <h3>Storage</h3> |
| | | 3 | | <p>Your secured items. They cannot be lost when you raid.</p> |
| | 0 | 4 | | @for (var i = 0; i < Items.Count; i++) |
| | | 5 | | { |
| | 0 | 6 | | var stashIndex = i; |
| | 0 | 7 | | var item = Items[stashIndex]; |
| | | 8 | | <div class="row-item"> |
| | | 9 | | <ItemTypeIcon Type="item.Type" /> |
| | 0 | 10 | | <span class="item-name rarity-@item.DisplayRarity.ToString().ToLower()">@ItemPresentationCatalog.GetLabe |
| | | 11 | | <div class="row-actions"> |
| | 0 | 12 | | <button class="action" disabled="@(!CanMoveToLoadoutItem(item))" @onclick="() => OnMoveToLoadout.Inv |
| | 0 | 13 | | <button class="action" disabled="@(!CanSellItem(item))" @onclick="() => OnSell.InvokeAsync(stashInde |
| | | 14 | | </div> |
| | | 15 | | </div> |
| | | 16 | | } |
| | | 17 | | </div> |
| | | 18 | | |
| | | 19 | | @code { |
| | 0 | 20 | | [Parameter, EditorRequired] public IReadOnlyList<Item> Items { get; set; } = []; |
| | 0 | 21 | | [Parameter, EditorRequired] public Func<Item, string> GetPrimaryActionLabel { get; set; } = _ => string.Empty; |
| | 0 | 22 | | [Parameter, EditorRequired] public Func<Item, bool> CanMoveToLoadoutItem { get; set; } = _ => false; |
| | 0 | 23 | | [Parameter, EditorRequired] public Func<Item, bool> CanSellItem { get; set; } = _ => false; |
| | 0 | 24 | | [Parameter, EditorRequired] public Func<Item, int> GetSellPrice { get; set; } = _ => 0; |
| | 0 | 25 | | [Parameter, EditorRequired] public EventCallback<int> OnMoveToLoadout { get; set; } |
| | 0 | 26 | | [Parameter, EditorRequired] public EventCallback<int> OnSell { get; set; } |
| | | 27 | | } |