Ui/Inventory/InventoryUi.razor
@using Clover.Components
@using Sandbox;
@using Sandbox.UI;
@inherits PanelComponent
@namespace Clover.Ui
<root>
<div class="modal-background"></div>
<div class="inventory-window">
<div class="equip-slots">
<InventoryUiEquip Inventory=@Inventory [email protected]></InventoryUiEquip>
<InventoryUiEquip Inventory=@Inventory [email protected]></InventoryUiEquip>
<InventoryUiEquip Inventory=@Inventory [email protected]></InventoryUiEquip>
<InventoryUiEquip Inventory=@Inventory [email protected]></InventoryUiEquip>
<InventoryUiEquip Inventory=@Inventory [email protected]></InventoryUiEquip>
<InventoryUiCloverBalance/>
</div>
<div class="inventory-slots">
@foreach ( var slot in Inventory.Container.QuerySlots() )
{
<InventoryUiSlot Inventory=@Inventory Index=@( slot.Index ) [email protected] @key=@(slot.Index)/>
}
</div>
@*<button @onclick=@( () => { Components.Get<PaintUi>( true ).Enabled = true; })>paint</button>*@
</div>
</root>