Skip to content

ContextLossFailureDialog

Overview

Failure message displayed when a WebGL context loss is experienced and we can't recover. Offers a button to reload the simulation.

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class ContextLossFailureDialog

import { ContextLossFailureDialog } from 'scenerystack/sim';

Constructor

new ContextLossFailureDialog( providedOptions? : ContextLossFailureDialogOptions )

Instance Methods

dispose()

hide()

Invokes the reload callback when the dialog is hidden. See https://github.com/phetsims/scenery-phet/issues/373.

hideWithoutReload()

Hides the dialog without invoking the reload callback.

Type ContextLossFailureDialogOptions

import type { ContextLossFailureDialogOptions } from 'scenerystack/sim';

Source Code

See the source for ContextLossFailureDialog.ts in the scenery-phet repository.