mirror of
https://github.com/celisej567/gm_construct_port.git
synced 2026-01-01 09:48:13 +03:00
25 lines
415 B
C#
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 );
|
|
}
|
|
}
|