You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For phetsims/qa#514. Found on Win 10 Chrome and Mac 10.12 Chrome.
In studio, if you disable something the opacity of that thing may change. If you also change the opacity of that disabled object, then the launched/downloaded version of the sim will have the default disabled opacity rather than the opacity you set.
Steps:
Go to the second screen in Studio
Disable the Ratio checkbox with phScale.microScreen.view.beakerControlPanel.ratioCheckbox.enabledProperty
Observe new opacity
Change the ratio checkbox's opacity with phScale.microScreen.view.beakerControlPanel.ratioCheckbox.opacityProperty What you change it too doesn't really matter, as long as you can see the difference.
Launch the sim and observe the checkbox.
This does not seem to happen if the item was not disabled.
The text was updated successfully, but these errors were encountered:
This is the expected behavior with all scenery Nodes and common-code UI components. Setting enabledProperty adjusts opacity. If you try to adjust both, then your opacity changes will be overwritten when state is restored.
Imo, we shouldn't be exposing opacityProperty for every Node (featured or not), or it should at least be phetioReadOnly:true by default. We should ensure that all UI components have an enabledProperty, with consistent behavior, implemented via the EnabledComponent mixin. And we should make opacityProperty phetioReadOnly:false only when there's a good reason to do so.
Assigning to @arouinfar to decide how to proceed. If you'd like to address this generally, please create a scenery issue, identify whether it's blocking, and link to this issue.
This is not a blocking issue @pixelzoom, and the sim is behaving as expected. See phetsims/scenery#1047 for a general discussion about (un)instrumenting opacityProperty.
For phetsims/qa#514. Found on Win 10 Chrome and Mac 10.12 Chrome.
In studio, if you disable something the opacity of that thing may change. If you also change the opacity of that disabled object, then the launched/downloaded version of the sim will have the default disabled opacity rather than the opacity you set.
Steps:
phScale.microScreen.view.beakerControlPanel.ratioCheckbox.enabledProperty
phScale.microScreen.view.beakerControlPanel.ratioCheckbox.opacityProperty
What you change it too doesn't really matter, as long as you can see the difference.This does not seem to happen if the item was not disabled.
The text was updated successfully, but these errors were encountered: