public override void SelectedOnGUI() {
mode = OperationMode.Normal;
if(AllowToolUtility.ControlIsHeld) mode = OperationMode.Constrained;
if(AllowToolUtility.AltIsHeld) mode = OperationMode.AllOfDef;
addToSelection = AllowToolUtility.ShiftIsHeld;
if (mode == OperationMode.Constrained) {
if (constraintsNeedReindexing) UpdateSelectionConstraints();
var label = "MassSelect_nowSelecting".Translate(cachedConstraintReadout);
DrawMouseAttachedLabel(label);
} else if (mode == OperationMode.AllOfDef) {
if (Event.current.type == EventType.Repaint) {
var target = TryGetItemOrPawnUnderCursor();
string label = target == null ? "MassSelect_needTarget".Translate() : "MassSelect_targetHover".Translate(target.def.label.CapitalizeFirst());
DrawMouseAttachedLabel(label);
}
}
}