public override void leftClickReleased(int x, int y) { if (this.greyedOut || this.dropDownOptions.Count <= 0 || !this.held) { return; } base.leftClickReleased(x, y); this.clicked = false; if (this.dropDownBounds.Contains(x, y)) { switch (this.whichOption) { case 1: this.config.OpenChecklistButtonLocation = (ModConfig.ButtonLocation) this.selectedOption; break; default: throw new NotImplementedException(); } } else { this.selectedOption = this.startingSelected; } DCOptionsDropDown.selected = (DCOptionsDropDown)null; this.held = false; }
public override void receiveLeftClick(int x, int y) { if (this.greyedOut) { return; } this.held = true; base.receiveLeftClick(x, y); this.startingSelected = this.selectedOption; this.leftClickHeld(x, y); Game1.playSound("shwip"); DCOptionsDropDown.selected = this; }