From dc8d8625789663f16443832706cdb96cf4a28e8a Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Fri, 2 Sep 2022 09:09:41 -0600 Subject: [PATCH] use messageText for dialog messages, https://github.com/phetsims/natural-selection/issues/323 --- js/common/view/DiedDialog.js | 6 +++--- js/common/view/WorldDialog.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/js/common/view/DiedDialog.js b/js/common/view/DiedDialog.js index f3f565f1..aeed7987 100644 --- a/js/common/view/DiedDialog.js +++ b/js/common/view/DiedDialog.js @@ -32,14 +32,14 @@ class DiedDialog extends Dialog { phetioDocumentation: 'This dialog is displayed when all of the bunnies have died.' }, options ); - const textNode = new Text( naturalSelectionStrings.allOfTheBunniesHaveDiedStringProperty, { + const messageText = new Text( naturalSelectionStrings.allOfTheBunniesHaveDiedStringProperty, { font: NaturalSelectionConstants.DIALOG_FONT, maxWidth: 450, // determined empirically - tandem: options.tandem.createTandem( 'textNode' ), + tandem: options.tandem.createTandem( 'messageText' ), phetioVisiblePropertyInstrumented: false } ); - super( textNode, options ); + super( messageText, options ); } } diff --git a/js/common/view/WorldDialog.js b/js/common/view/WorldDialog.js index de87a4ef..3a81d116 100644 --- a/js/common/view/WorldDialog.js +++ b/js/common/view/WorldDialog.js @@ -38,18 +38,18 @@ class WorldDialog extends Dialog { scale: 0.8 // determined empirically } ); - const textNode = new Text( naturalSelectionStrings.bunniesHaveTakenOverTheWorldStringProperty, { + const messageText = new Text( naturalSelectionStrings.bunniesHaveTakenOverTheWorldStringProperty, { font: NaturalSelectionConstants.DIALOG_FONT, fill: 'white', maxWidth: worldNode.width, - tandem: options.tandem.createTandem( 'textNode' ), + tandem: options.tandem.createTandem( 'messageText' ), phetioVisiblePropertyInstrumented: false } ); const content = new VBox( { spacing: 25, align: 'center', - children: [ textNode, worldNode ] + children: [ messageText, worldNode ] } ); super( content, options );