using Godot;

namespace ReactorMaintenance.Godot.Controls;

public partial class PrimaryButton : Button
{
    public override void _Ready()
    {
        FocusMode = FocusModeEnum.All;
        CustomMinimumSize = new(220, 44);
        SizeFlagsHorizontal = SizeFlags.ExpandFill;
    }

    public void Configure(string text, string tooltip = "", bool disabled = false)
    {
        Text = text;
        TooltipText = tooltip;
        Disabled = disabled;
    }
}