Add files via upload

This commit is contained in:
celisej567
2021-08-05 17:54:51 +03:00
committed by GitHub
parent d58ad89d11
commit 76b55e2a87
57 changed files with 5632 additions and 0 deletions

24
code/ui/InventoryIcon.cs Normal file
View File

@@ -0,0 +1,24 @@

using Sandbox;
using Sandbox.UI;
using Sandbox.UI.Construct;
public class InventoryIcon : Panel
{
public Entity TargetEnt;
public Label Label;
public Label Number;
public InventoryIcon( int i, Panel parent )
{
Parent = parent;
Label = Add.Label( "empty", "item-name" );
Number = Add.Label( $"{i}", "slot-number" );
}
public void Clear()
{
Label.Text = "";
SetClass( "active", false );
}
}