Skip to content

Commit

Permalink
Dropping mysteryMaterials option, #270
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinVallejo committed Jul 26, 2024
1 parent 48df1e9 commit 1cbf15d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 20 deletions.
3 changes: 1 addition & 2 deletions js/buoyancy-basics/view/BuoyancyBasicsExploreScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ export default class BuoyancyBasicsExploreScreenView extends BuoyancyScreenView<
customKeepsConstantDensity: true,
tandem: tandem,
minCustomMass: 0.1,
maxCustomMass: 15,
mysteryMaterials: []
maxCustomMass: 15
}
);

Expand Down
3 changes: 1 addition & 2 deletions js/buoyancy/view/BuoyancyExploreScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ export default class BuoyancyExploreScreenView extends BuoyancyScreenView<Buoyan
this.popupLayer,
{
tandem: tandem,
minCustomMass: 0.1,
mysteryMaterials: [ Material.MATERIAL_X, Material.MATERIAL_Y ]
minCustomMass: 0.1
}
);

Expand Down
3 changes: 1 addition & 2 deletions js/buoyancy/view/BuoyancyLabScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ export default class BuoyancyLabScreenView extends BuoyancyScreenView<BuoyancyLa
{
tandem: tandem.createTandem( 'blockPanel' ),
minCustomMass: 0.1,
maxVolumeLiters: maxBlockVolume,
mysteryMaterials: [ Material.MATERIAL_O, Material.MATERIAL_P ]
maxVolumeLiters: maxBlockVolume
}
) ] );

Expand Down
7 changes: 1 addition & 6 deletions js/common/view/ABControlsNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,8 @@ import Cuboid from '../model/Cuboid.js';
import BlockControlNode, { BlockControlNodeOptions } from './BlockControlNode.js';
import DensityBuoyancyCommonColors from './DensityBuoyancyCommonColors.js';
import ABPanelsNode from './ABPanelsNode.js';
import Material from '../model/Material.js';

type SelfOptions = {
mysteryMaterials?: Material[]; // TODO AV: delete, https://github.com/phetsims/density-buoyancy-common/issues/270
};

export type ABControlsNodeOptions = SelfOptions & BlockControlNodeOptions & { tandem: Tandem };
export type ABControlsNodeOptions = BlockControlNodeOptions & { tandem: Tandem };

export default class ABControlsNode extends ABPanelsNode {

Expand Down
7 changes: 1 addition & 6 deletions js/common/view/BlockControlNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,14 @@ import Cube from '../model/Cube.js';
import Cuboid from '../model/Cuboid.js';
import MaterialMassVolumeControlNode, { MaterialMassVolumeControlNodeOptions } from './MaterialMassVolumeControlNode.js';
import DensityBuoyancyCommonConstants from '../DensityBuoyancyCommonConstants.js';
import Material from '../model/Material.js';
import NumberControl, { NumberControlOptions } from '../../../../scenery-phet/js/NumberControl.js';
import DensityBuoyancyCommonStrings from '../../DensityBuoyancyCommonStrings.js';
import { combineOptions } from '../../../../phet-core/js/optionize.js';
import PrecisionSliderThumb from './PrecisionSliderThumb.js';
import UnitConversionProperty from '../../../../axon/js/UnitConversionProperty.js';
import Range from '../../../../dot/js/Range.js';

type SelfOptions = {
mysteryMaterials: Material[]; // Provide empty list to opt out. // TODO AV: delete, https://github.com/phetsims/density-buoyancy-common/issues/270
};

export type BlockControlNodeOptions = MaterialMassVolumeControlNodeOptions & SelfOptions;
export type BlockControlNodeOptions = MaterialMassVolumeControlNodeOptions;

export default class BlockControlNode extends MaterialMassVolumeControlNode {
public constructor( cuboid: Cuboid, listParent: Node, numberControlMassPropertyFeatured: boolean, options: BlockControlNodeOptions ) {
Expand Down
3 changes: 1 addition & 2 deletions js/density/view/DensityIntroScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ export default class DensityIntroScreenView extends DensityBuoyancyScreenView<De
model.massB,
this.popupLayer, {
tandem: tandem,
maxCustomMass: 10,
mysteryMaterials: []
maxCustomMass: 10
} );

const accordionTandem = tandem.createTandem( 'densityAccordionBox' );
Expand Down

0 comments on commit 1cbf15d

Please sign in to comment.