public override void ReceiveLeftClick(int x, int y) { if (GreyedOut) { return; } _startingSelected = _selectedOption; LeftClickHeld(x, y); Game1.playSound("shwip"); _selected = this; }
public override void LeftClickReleased(int x, int y) { if (GreyedOut || _dropDownOptions.Count <= 0) { return; } base.LeftClickReleased(x, y); _clicked = false; if (_dropDownBounds.Contains(x, y)) { Config[Name] = _dropDownOptions[_selectedOption]; } else { _selectedOption = _startingSelected; } _selected = null; }