## DuScriptPanel()

For use with `DuScriptUI`.
A Panel or Window.
This is not a real class, and cannot be instanciated.
Use `DuScriptUI.scriptPanel` to create a Panel.
Constructor

#### # new DuScriptPanel()

##### Properties:

Name | Type | Description
--- | --- | ---
`settingsGroup` | `Group` | The ScriptUI group where to add the UI for the settings of the script.
`mainGroup` | `Group` | The ScriptUI group where to add the main UI of the script.
`onApplySettings` | `DuScriptPanel~onApplySettings` | Called when the apply settings button is clicked.
`onResetSettings` | `DuScriptPanel~onResetSettings` | Called when the reset (default) settings button is clicked.

View Source DuAEF_Duik_api.jsxinc, line 9519

### Extends

- DuPanel

# Members

Type: `Group`

#### # content

The ScriptUI group where the new controls must be added. Do not add any control directly inside the DuPanel.

Inherited From:
  - DuPanel#content

View Source DuAEF_Duik_api.jsxinc, line 9047

# Methods

#### # addCommonSettings()

Adds some settings common to all scripts (the file, highlight color, languages...)

View Source DuAEF_Duik_api.jsxinc, line 9546

#### # refreshUi(file) → {boolean}

A function to reload a script in this panel.

##### Parameters:

Name | Type | Description
--- | --- | ---
`file` | `File` | The script to reload.

Inherited From:
  - DuPanel#refreshUi

View Source DuAEF_Duik_api.jsxinc, line 9054

Returns:
true on success, false otherwise.
Type: `boolean`

# Type Definitions

#### # onApplySettings()

The function to execute when the apply settings button is clicked.

View Source DuAEF_Duik_api.jsxinc, line 9534

#### # onResetSettings()

The function to execute when the reset settings button is clicked.

View Source DuAEF_Duik_api.jsxinc, line 9540