private void txtHitbox_LostFocus(object sender, EventArgs e)
        {
            UpdateSettings();
            SplitSettings splitSetting = (SplitSettings)((TextBox)sender).Parent;

            if (splitSetting.ControlType != "Hitbox")
            {
                return;
            }
            display.Hide();
            display.OnNewHitbox -= txtHitbox_OnNewHitbox;
            display.UndrawRectangle();
        }
 public OriAndTheBlindForestSettings(OriComponent component) {
     InitializeComponent();
     parent = component;
     display = new OriHitboxDisplay(component.oriState);
     display.Hide();
     btnAnyPercent.Click += btnAnyPercent_Click;
     btn100Percent.Click += btn100Percent_Click;
     btnAllCells.Click += btnAllCells_Click;
 }
 public OriAndTheBlindForestSettings(OriComponent component)
 {
     InitializeComponent();
     parent  = component;
     display = new OriHitboxDisplay(component.oriState);
     display.Hide();
     btnAnyPercent.Click += btnAnyPercent_Click;
     btn100Percent.Click += btn100Percent_Click;
     btnAllCells.Click   += btnAllCells_Click;
 }