-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shared trash can images #320
Comments
Scenery-phet sounds good. Not sure if we should break apart the trash icon and arrow, or use font awesome for the trash can part. |
The one for Balancing Act has an asset file too in Adobe Illustrator format. This should probably be moved as well. You'll probably need to update the licensing files as well. No strong opinions on the names - trash-can or something similar would be fine. |
Maybe we should separate out the curved arrow from the trash icon and create it as a kite shape? Perhaps some sim in the future will want that arrow to be a different color. I'd also be interested in seeing the black trash can as a kite shape so it is scaleable and paintable. Here's the font awesome trash icon, can/should we use that? @jonathanolson let me know if you'd like other feedback or if you want me to take the lead on this. |
@ariel-phet, does that trash can icon in the above comment (#320 (comment)) look like a good enough replacement for the trash can in the icons for pendulum-lab/energy-skate-park-basics? I'd like to either replace to a version using the font-awesome icon, or consolidate the images so they aren't copied across sims. |
@jonathanolson that icon does look like a good enough to replacement to me |
Moved over ClearThermalButton to scenery-phet, as it was shared and benefited from refactoring (takes care of the bottom pair of images). |
@jonathanolson What's the status of this? Looks like you did some work on this about a year ago. |
I handled the ESPB/pendulum-lab refactor. I didn't yet handle the balancing-act/FAMB refactor (I wasn't working on either of those sims, and at the time needed to handle it quickly for pendulum-lab). |
@jonathanolson said:
Recommended to chose a different name. While it may be used for thermal energy in your sim(s), the implementation in scenery-phet/ClearThermalButton contains nothing specific to thermal energy. It's simply a button with a trash can + arrow on it, and the client handles the specifics of when to enable/disable it. |
There's also a TODO in ClearThermalButton with no associated issue number: var arrowShape = new CurvedArrowShape( 10, -0.9 * Math.PI, -0.2 * Math.PI, {
tandem: options.tandem.createTandem( 'arrowShape' ),
headWidth: 12,
tailWidth: 4
// TODO
} ); |
Sorry about the random TODO, no clue what that is for, so I removed it (things seem to be working fine). This button includes the "return" arrow node (its main feature), which the CCK/EqEx/MOTHA cases I don't believe would be used. It also has default colors meant for its specific purpose. So presumably it would need to be generalized to support "trash can-like buttons", for which I don't see any significant advantage. |
I don't understand. How is a button that looks like this: ... in any way specific to thermal energy, or any specific quantity for that matter? Why couldn't it be used to clear anything that is color-coded to the arrow color? If it's supposed to be specific to thermal energy, then why is Additionally, the doc for
This doc (and the type name) make it sound like |
I renamed var clearThermalButton = new MoveToTrashButton( {
tandem: tandem.createTandem( 'clearThermalButton' ),
...
} ); The purpose of the button in this context is to clear thermal energy, so the variable name @jonathanolson please review. |
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
Ah... Over in #455, I discovered that this button doesn't have any way to change the arrow color. It's hard-coded to thermal energy (using the incorrect color btw). So I'll add an option for the arrow fill. |
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
Over to @jonathanolson. |
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
It turns out the none of the sims using |
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
Status of this issue: Assigned to @jonathanolson to review since 1/2019. Raising prioirty of that review to high. |
These changes look good, and works well for the simulations that use it! @jbphet and @jessegreenberg, thoughts on whether we should have a shared trash can image for FAMB/balancing-act (that those sims effectively share, but potentially at different sizes)? |
My thought would be that it would probably be better to have a shared image if we can come up with a scale that works for both sims. If not, it doesn't seem like a big deal. This would be worth maybe 1/2 hr of work. |
Reviewing scenery-phet issues for Q4 2022 planning... Looks like this stalled out in Feb 2021, and is waiting on feeback from @jessegreenberg. @kathy-phet please prioritize. |
It looks like FAMB and balancing-act are the same images with different scales already. I am fine moving this to common code but it doesn't seem like a big improvement. That trash can looks dated and I doubt we will use that image again in a sim. Its probably a quick task though, @kathy-phet would you like someone to do this? |
It looks like there are three trash can images, and they are all shared:
balancing-act:
![trash-can](https://user-images.githubusercontent.com/480878/28189669-2a128a72-67e4-11e7-9807-4507979c09a4.png)
forces-and-motion-basics:
![trash-can](https://user-images.githubusercontent.com/480878/28189705-5146d8e6-67e4-11e7-82b3-ebe11ce69dc7.png)
energy-skate-park-basics:
![trash-can](https://user-images.githubusercontent.com/480878/28189689-3b3800ca-67e4-11e7-81ac-1fb946aaa8a2.png)
![trash-can-disabled](https://user-images.githubusercontent.com/480878/28189697-452a04ac-67e4-11e7-8cbf-f58ad8a90a48.png)
pendulum-lab:
![trash-can](https://user-images.githubusercontent.com/480878/28189721-63acbece-67e4-11e7-9c84-08535a1b00e3.png)
![trash-can-disabled](https://user-images.githubusercontent.com/480878/28189724-67c52712-67e4-11e7-821f-f570cac964b3.png)
@jbphet and @samreid, presumably these should all be moved to scenery-phet. Preferences on names, or objections?
The text was updated successfully, but these errors were encountered: