private void Controller_PadClicked(object sender, ClickedEventArgs e) { if (PW.WindowController == this && PW.IsConfigured) { // Toggle debug box boolean PW.UseTargetBox = !PW.UseTargetBox; // If we toggled off, destroy the box if (!PW.UseTargetBox) { PW.DestroyTargetBox(); } } }