setWindowOpacity

Script::setWindowOpacity

Sets the window’s opacity.

Declaration

void setWindowOpacity(float opacity, WindowID windowID = NTSHENGN_WINDOW_UNKNOWN);

Parameters

Name

Type

Description

opacity

float

The window’s opacity, between 0.0 (transparent) and 1.0 (opaque).

windowID

WindowID

The window to change the opacity of.

Returns

None.

Notes

The main window will be used if windowID is equal to NTSHENGN_WINDOW_UNKNOWN.