private void ResetCurrentOption() { OptionsScreenWidget screenWidget = this._screenWidget; if (screenWidget == null) { return; } screenWidget.SetCurrentOption(null, null); }
private void SetCurrentOption(bool fromHoverOverDropdown, bool fromBooleanSelection, int hoverDropdownItemIndex = -1) { if (this._optionTypeID == 3) { if (fromHoverOverDropdown) { if (this._graphicsSprites.Count > hoverDropdownItemIndex) { Sprite sprite = this._graphicsSprites[hoverDropdownItemIndex]; } } else if (this._graphicsSprites.Count > this._dropdownWidget.CurrentSelectedIndex && this._dropdownWidget.CurrentSelectedIndex >= 0) { Sprite sprite2 = this._graphicsSprites[this._dropdownWidget.CurrentSelectedIndex]; } OptionsScreenWidget screenWidget = this._screenWidget; if (screenWidget == null) { return; } screenWidget.SetCurrentOption(this, null); return; } else if (this._optionTypeID == 0) { int num = this._booleanToggleButtonWidget.IsSelected ? 0 : 1; if (this._graphicsSprites.Count > num) { Sprite sprite3 = this._graphicsSprites[num]; } OptionsScreenWidget screenWidget2 = this._screenWidget; if (screenWidget2 == null) { return; } screenWidget2.SetCurrentOption(this, null); return; } else { OptionsScreenWidget screenWidget3 = this._screenWidget; if (screenWidget3 == null) { return; } screenWidget3.SetCurrentOption(this, null); return; } }