diff --git a/ValblazeProject/Components/InventoryItem.razor b/ValblazeProject/Components/InventoryItem.razor index a29e6fe..61ff77b 100644 --- a/ValblazeProject/Components/InventoryItem.razor +++ b/ValblazeProject/Components/InventoryItem.razor @@ -9,8 +9,9 @@ @if (Item != null) { -
- @Item.DisplayName @if (Item.Num > 0) +
+ @Item.DisplayName + @if (Item.Num > 0) {
@( diff --git a/ValblazeProject/Components/InventoryItem.razor.css b/ValblazeProject/Components/InventoryItem.razor.css index aa45fc4..8888b90 100644 --- a/ValblazeProject/Components/InventoryItem.razor.css +++ b/ValblazeProject/Components/InventoryItem.razor.css @@ -10,6 +10,18 @@ .imageList { min-width: 50px; max-width: 50px; - height: 50px; - margin: auto -} \ No newline at end of file +} + +.number { + font-family: 'VT323', monospace; + font-size: 24px; + color: #fefefe; + position: relative; + text-shadow: #333 1px 2px 1px; + top: -30px; + right: -40px; + cursor: default; + z-index: 20; + pointer-events: none; +} + diff --git a/ValblazeProject/Inventory.json b/ValblazeProject/Inventory.json index 22470a6..d8d5030 100644 --- a/ValblazeProject/Inventory.json +++ b/ValblazeProject/Inventory.json @@ -1 +1 @@ -[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null] \ No newline at end of file +[null,null,null,{"Id":1,"DisplayName":"Stone","Name":"stone","StackSize":64,"MaxDurability":0,"EnchantCategories":[],"RepairWith":[],"CreatedDate":"2022-12-30T20:30:15.8656978+01:00","UpdatedDate":null,"ImageBase64":"iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAnklEQVQ4y4VTQRIAMQTzXA9w7xM8uXti0jS6B8OYEiK1zNxoa60dETsiOnb3I4dmFWABPypz925Wbw1REImRp8Y9Aa5QnvM4bZlhZ0YrzzxhjTGiMl6pfGaeEzAKxuMVsDsjvNbrBqwBReC0Yp9R8aCKlejM3S8h8UossOOMarTX2LyuKYLUn2Apl7fpE03MY\u002B6a4CWmiUj7U5/iBME\u002BeeR3wyunqoUAAAAASUVORK5CYII=","Num":1},null,null,{"Id":1,"DisplayName":"Stone","Name":"stone","StackSize":64,"MaxDurability":0,"EnchantCategories":[],"RepairWith":[],"CreatedDate":"2022-12-30T20:29:53.3896405+01:00","UpdatedDate":null,"ImageBase64":"iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAnklEQVQ4y4VTQRIAMQTzXA9w7xM8uXti0jS6B8OYEiK1zNxoa60dETsiOnb3I4dmFWABPypz925Wbw1REImRp8Y9Aa5QnvM4bZlhZ0YrzzxhjTGiMl6pfGaeEzAKxuMVsDsjvNbrBqwBReC0Yp9R8aCKlejM3S8h8UossOOMarTX2LyuKYLUn2Apl7fpE03MY\u002B6a4CWmiUj7U5/iBME\u002BeeR3wyunqoUAAAAASUVORK5CYII=","Num":1},null,null,null,null,null,null,null,null,null,null,null] \ No newline at end of file diff --git a/ValblazeProject/Pages/Inventaire.razor.cs b/ValblazeProject/Pages/Inventaire.razor.cs index 5d217d7..793f149 100644 --- a/ValblazeProject/Pages/Inventaire.razor.cs +++ b/ValblazeProject/Pages/Inventaire.razor.cs @@ -1,20 +1,12 @@ -using Blazored.LocalStorage; -using Blazored.Modal; -using Blazored.Modal.Services; -using Blazorise.DataGrid; +using Blazorise.DataGrid; using ValblazeProject.Models; using Microsoft.AspNetCore.Components; using Microsoft.Extensions.Localization; -using ValblazeProject.Modals; using ValblazeProject.Services; using ValblazeProject.Components; using System.Collections.ObjectModel; -using System.ComponentModel; -using Microsoft.AspNetCore.Components.Forms; -using System.Linq; using Microsoft.JSInterop; using System.Collections.Specialized; -using Microsoft.AspNetCore.Components.Web; using System.Text.Json; namespace ValblazeProject.Pages @@ -45,7 +37,6 @@ namespace ValblazeProject.Pages private int totalSizeByPage = 5; private bool _trie = false; - // Gestion logs public ObservableCollection Actions { get; set; } @@ -95,13 +86,13 @@ namespace ValblazeProject.Pages } /// - /// Logs + /// method that call the javascript /// /// /// private void OnActionsCollectionChanged(object? sender, NotifyCollectionChangedEventArgs e) { - JavaScriptRuntime.InvokeVoidAsync("Inventaire.AddActions", e.NewItems); + JavaScriptRuntime.InvokeVoidAsync("Crafting.AddActions", e.NewItems); } ///