Skip to content

Commit

Permalink
Update usages for renaming string modules as pascal case, see phetsim…
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisklus committed Sep 7, 2022
1 parent 7846c47 commit f79b477
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions js/DensityStrings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ type StringsType = {
}
};

const densityStrings = getStringModule( 'DENSITY' ) as StringsType;
const DensityStrings = getStringModule( 'DENSITY' ) as StringsType;

density.register( 'densityStrings', densityStrings );
density.register( 'DensityStrings', DensityStrings );

export default densityStrings;
export default DensityStrings;
4 changes: 2 additions & 2 deletions js/compare/CompareScreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { Image } from '../../../scenery/js/imports.js';
import Tandem from '../../../tandem/js/Tandem.js';
import compare_screen_icon_png from '../../mipmaps/compare_screen_icon_png.js';
import density from '../density.js';
import densityStrings from '../densityStrings.js';
import DensityStrings from '../DensityStrings.js';

export default class CompareScreen extends Screen<DensityCompareModel, DensityCompareScreenView> {
public constructor( tandem: Tandem ) {
Expand All @@ -31,7 +31,7 @@ export default class CompareScreen extends Screen<DensityCompareModel, DensityCo
tandem: tandem.createTandem( 'view' )
} ),
{
name: densityStrings.screen.compareStringProperty,
name: DensityStrings.screen.compareStringProperty,
backgroundColorProperty: DensityBuoyancyCommonColors.skyBottomProperty,
homeScreenIcon: new ScreenIcon( icon, {
maxIconWidthProportion: 1,
Expand Down
4 changes: 2 additions & 2 deletions js/density-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Sim, { SimOptions } from '../../joist/js/Sim.js';
import simLauncher from '../../joist/js/simLauncher.js';
import Tandem from '../../tandem/js/Tandem.js';
import densityStrings from './densityStrings.js';
import DensityStrings from './DensityStrings.js';
import CompareScreen from './compare/CompareScreen.js';
import IntroScreen from './intro/IntroScreen.js';
import MysteryScreen from './mystery/MysteryScreen.js';
Expand All @@ -34,7 +34,7 @@ const simOptions: SimOptions = {
// launch the sim - beware that scenery Image nodes created outside of simLauncher.launch() will have zero bounds
// until the images are fully loaded, see https://github.com/phetsims/coulombs-law/issues/70
simLauncher.launch( () => {
const sim = new Sim( densityStrings.density.titleStringProperty, [
const sim = new Sim( DensityStrings.density.titleStringProperty, [
new IntroScreen( Tandem.ROOT.createTandem( 'introScreen' ) ),
new CompareScreen( Tandem.ROOT.createTandem( 'compareScreen' ) ),
new MysteryScreen( Tandem.ROOT.createTandem( 'mysteryScreen' ) )
Expand Down
4 changes: 2 additions & 2 deletions js/intro/IntroScreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { Image } from '../../../scenery/js/imports.js';
import Tandem from '../../../tandem/js/Tandem.js';
import intro_screen_icon_png from '../../mipmaps/intro_screen_icon_png.js';
import density from '../density.js';
import densityStrings from '../densityStrings.js';
import DensityStrings from '../DensityStrings.js';

export default class IntroScreen extends Screen<DensityIntroModel, DensityIntroScreenView> {
public constructor( tandem: Tandem ) {
Expand All @@ -31,7 +31,7 @@ export default class IntroScreen extends Screen<DensityIntroModel, DensityIntroS
tandem: tandem.createTandem( 'view' )
} ),
{
name: densityStrings.screen.introStringProperty,
name: DensityStrings.screen.introStringProperty,
backgroundColorProperty: DensityBuoyancyCommonColors.skyBottomProperty,
homeScreenIcon: new ScreenIcon( icon, {
maxIconWidthProportion: 1,
Expand Down
4 changes: 2 additions & 2 deletions js/mystery/MysteryScreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { Image } from '../../../scenery/js/imports.js';
import Tandem from '../../../tandem/js/Tandem.js';
import mystery_screen_icon_png from '../../mipmaps/mystery_screen_icon_png.js';
import density from '../density.js';
import densityStrings from '../densityStrings.js';
import DensityStrings from '../DensityStrings.js';

export default class MysteryScreen extends Screen<DensityMysteryModel, DensityMysteryScreenView> {
public constructor( tandem: Tandem ) {
Expand All @@ -31,7 +31,7 @@ export default class MysteryScreen extends Screen<DensityMysteryModel, DensityMy
tandem: tandem.createTandem( 'view' )
} ),
{
name: densityStrings.screen.mysteryStringProperty,
name: DensityStrings.screen.mysteryStringProperty,
backgroundColorProperty: DensityBuoyancyCommonColors.skyBottomProperty,
homeScreenIcon: new ScreenIcon( icon, {
maxIconWidthProportion: 1,
Expand Down

0 comments on commit f79b477

Please sign in to comment.