Closed pixelzoom closed 10 years ago
I changed names to match this convention. There are still cases with icons where I have left the Icon suffix instead of Image, as in:
var whiteLightIcon = require( 'image!COLOR_VISION/white-light-icon.png' );
var singleColorLightIcon = require( 'image!COLOR_VISION/single-color-light-icon.png' );
var beamViewIcon = require( 'image!COLOR_VISION/beam-view-icon.png' );
var photonViewIcon = require( 'image!COLOR_VISION/photon-view-icon.png' );
I am fine to change these to Image too, just want to be sure what the convention is. Any thoughts?
In my opinion, it is ok to use "icon" as the suffix for images used as icons.
Assigning to @pixelzoom for review.
Looks good. "Icon", "image" or anything else to differentiate them from model elements is fine. Closing.
Your naming convention for imported images confused me a little when first reading your code. Here's an example from FlashlightNode:
While reading the code, I expected flashlight to be a model element, not an imported image. I recommend naming imported images with 'Image' suffix, and nodes with 'Node'. So the above would become:
Before you proceed with changing this through your code, you may want to see how @samreid feels about it. He may have a different opinion.