using Godot;

/**
 * Script attached to the main node in the BuddyInviteItem scene.
 */
public partial class BuddyInviteItem : PanelContainer
{
	[Export]
	public Label nameLabel;
	[Export]
	public TextureButton inviteButton;

	private static readonly Color DIMMED = new Color(1f, 1f, 1f, 0.25f);

	public void SetInviteEnabled(bool enable)
	{
		inviteButton.Disabled = !enable;
		inviteButton.Modulate = enable ? Colors.White : DIMMED;
	}
}
