private void init() { if (this._tried) { return; } this._tried = true; this._setting = NetScriptFramework.SkyrimSE.Setting.FindSettingByName(this.Name, true, true); if (this._setting != null) { _def = this.CurrentValue; } }
private void UpdateDefaultValue() { if (this._defaultValue.HasValue) { return; } _setting = NetScriptFramework.SkyrimSE.Setting.FindSettingByName("fNearDistance:Display", true, true); if (_setting == null) { throw new InvalidOperationException("Failed to find fNearDistance setting!"); } this._defaultValue = _setting.GetFloat(); }