Skip to content

Commit

Permalink
Sim screenProperty => selectedScreenProperty and other screen changes…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Aug 11, 2022
1 parent 3396084 commit bf3865b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/common/model/GravityAndOrbitsClock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class GravityAndOrbitsClock {

this.isRunningProperty = new BooleanProperty( false, {
tandem: tandem.createTandem( 'isRunningProperty' ),
phetioDocumentation: `This value is true when '${sceneTandem.phetioID}' is the selected scene and the play/pause button is in play mode. (It remains true even if the user switches screens. Use in combination with '${phet.joist.sim.screenProperty.tandem.phetioID}'.)`,
phetioDocumentation: `This value is true when '${sceneTandem.phetioID}' is the selected scene and the play/pause button is in play mode. (It remains true even if the user switches screens. Use in combination with '${phet.joist.sim.selectedScreenProperty.tandem.phetioID}'.)`,
phetioReadOnly: true
} );
this.timeProperty = new NumberProperty( 0, {
Expand Down
4 changes: 2 additions & 2 deletions js/common/model/GravityAndOrbitsModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ class GravityAndOrbitsModel {
this.showMassProperty = new BooleanProperty( false, { tandem: showMassCheckbox ? tandem.createTandem( 'showMassProperty' ) : Tandem.OPTIONAL } );
this.showMeasuringTapeProperty = new BooleanProperty( false, { tandem: showMeasuringTape ? tandem.createTandem( 'showMeasuringTapeProperty' ) : Tandem.OPTIONAL } );

assert && assert( phet.joist.sim.screenProperty, 'sim should exist by now' );
assert && assert( phet.joist.sim.selectedScreenProperty, 'sim should exist by now' );
this.isPlayingProperty = new BooleanProperty( false, {
tandem: tandem.createTandem( 'isPlayingProperty' ),
phetioDocumentation: `This value is true if the play/pause button on this screen is in play mode. (It remains true even if the user switches screens. Use in combination with '${phet.joist.sim.screenProperty.tandem.phetioID}'.)`
phetioDocumentation: `This value is true if the play/pause button on this screen is in play mode. (It remains true even if the user switches screens. Use in combination with '${phet.joist.sim.selectedScreenProperty.tandem.phetioID}'.)`
} );

this.timeSpeedProperty = new EnumerationProperty( TimeSpeed.NORMAL, {
Expand Down

0 comments on commit bf3865b

Please sign in to comment.