Skip to main content

Class: G3XBacklightUtils

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Backlight/G3XBacklightUtils.ts:4

A utility class for working with G3X backlight SimVars.

Constructors

Constructor

new G3XBacklightUtils(): G3XBacklightUtils

Returns

G3XBacklightUtils

Methods

getAutoLevelSimVarName()

static getAutoLevelSimVarName(): string

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Backlight/G3XBacklightUtils.ts:23

Gets the automatic software backlight level SimVar name.

Returns

string

The automatic software backlight level SimVar name.


getScreenLevelSimVarName()

static getScreenLevelSimVarName(index): string

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Backlight/G3XBacklightUtils.ts:11

Gets the screen backlight level SimVar name for a GDU.

Parameters

ParameterTypeDescription
indexnumberA GDU index.

Returns

string

The backlight level SimVar name for the specified GDU.

Throws

Error if index is not a valid value.