5 override bool OnClick(Widget w,
int x,
int y,
int button)
7 Widget parent = w.GetParent();
11 CheckBoxWidget swapSidesBox = CheckBoxWidget.Cast(parent.FindAnyWidget(
"SwapSidesBox"));
12 XComboBoxWidget selectionBox = XComboBoxWidget.Cast(parent.FindAnyWidget(
"SelectionBox"));
18 if (!playerController)
22 if (!networkComponent)
24 Print(
"No clean sweep network component found. SCR_CleanSweepAreaSelectionButtonComponent.OnClick()");
28 networkComponent.ChooseArea(selectionBox.GetCurrentItem(), swapSidesBox.IsChecked());