Skip to content

Commit

Permalink
Add images for realistic bulb, see phetsims/circuit-construction-kit-…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Nov 15, 2020
1 parent bd90e27 commit 4e60ca9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion js/lab/view/LabScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ class LabScreenView extends CCKCScreenView {
const carouselTandem = tandem.createTandem( 'circuitElementToolbox' ).createTandem( 'carousel' ).createTandem( 'tools' );
const wireToolNode = circuitElementToolFactory.createWireToolNode( CCKCConstants.NUMBER_OF_WIRES, carouselTandem.createTandem( 'wireToolNode' ) );

const realisticLightBulbToolNode = circuitElementToolFactory.createLightBulbToolNode( 10, carouselTandem.createTandem( 'nonOhmicLightBulbToolNode' ), model.circuit.nonOhmicLightBulbGroup, circuitConstructionKitCommonStrings.realisticBulb );
const realisticLightBulbToolNode = circuitElementToolFactory.createLightBulbToolNode(
10,
carouselTandem.createTandem( 'realisticLightBulbToolNode' ),
model.circuit.realisticLightBulbGroup,
circuitConstructionKitCommonStrings.realisticBulb,
true
);

// Show the realistic bulbs if selected
model.addRealisticBulbsProperty.link( addRealisticBulbs => realisticLightBulbToolNode.setVisible( addRealisticBulbs ) );
Expand Down

0 comments on commit 4e60ca9

Please sign in to comment.