Files
gm_construct_port/code/ui/InventoryIcon.cs
2021-08-05 17:54:51 +03:00

25 lines
415 B
C#

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 );
}
}