# DoubleSetting

A double setting.

### Extends

* [`Setting`](/api/breeze/settings/setting.md)

### Constructors

#### Constructor

> **new DoubleSetting**(`owner`, `name`, `description`, `defaultValue`, `min`, `max`): `DoubleSetting`

**Parameters**

**owner**

`object`

Can either be 'script' or a subgroup.

**name**

`string`

The name of the setting.

**description**

`string`

The description of the setting.

**defaultValue**

`number`

The default value of the setting.

**min**

`number`

The minimum value of the setting.

**max**

`number`

The maximum value of the setting.

**Returns**

`DoubleSetting`

**Overrides**

`Setting.constructor`

#### Constructor

> **new DoubleSetting**(`owner`, `name`, `description`, `defaultValue`, `min`, `max`, `step`): `DoubleSetting`

**Parameters**

**owner**

`object`

Can either be 'script' or a subgroup.

**name**

`string`

The name of the setting.

**description**

`string`

The description of the setting.

**defaultValue**

`number`

The default value of the setting.

**min**

`number`

The minimum value of the setting.

**max**

`number`

The maximum value of the setting.

**step**

`number`

The amount to round the setting by when adjusting via the slider.

**Returns**

`DoubleSetting`

**Overrides**

`Setting.constructor`

### Methods

#### description()

> **description**(): `string`

**Returns**

`string`

The description of the setting.

**Inherited from**

[`Setting`](/api/breeze/settings/setting.md).[`description`](/api/breeze/settings/setting.md#description)

***

#### getValue()

> **getValue**(): `number`

**Returns**

`number`

The value of the setting.

***

#### name()

> **name**(): `string`

**Returns**

`string`

The name of the setting.

**Inherited from**

[`Setting`](/api/breeze/settings/setting.md).[`name`](/api/breeze/settings/setting.md#name)

***

#### setValue()

> **setValue**(`value`): `void`

**Parameters**

**value**

`number`

The value to set the setting to.

**Returns**

`void`

***

#### visible()

> **visible**(`visible`): `void`

You can use this to hide settings temporarily depending on the user config. The callback should return a boolean.

**Parameters**

**visible**

`Function`

The function to determine if the setting should be visible or not.

**Returns**

`void`

**Example**

```ts
const delay = new IntSetting("Delay", "The amount of ticks to wait in between attacks.", false);

delay.visible(() => {
	return someOtherSetting.getValue()
});
```

**Inherited from**

[`Setting`](/api/breeze/settings/setting.md).[`visible`](/api/breeze/settings/setting.md#visible)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://scripting.breeze.rip/api/breeze/settings/doublesetting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
