Closed arouinfar closed 2 years ago
(1) See elements like projectileMotion.labScreen.view.projectileControlPanel.separator2.visibleProperty
(2) Done.
(3) This is actually harder than I thought. We don't have access to NumberControl's titleNode from outside the type, so I can't toggle visibility of dragObjectDisplay
based on it. I'll have to keep thinking about it.
@arouinfar please review. How important is (3)?
Sorry for the late commit coming in for (2)
Items (1) & (2) look good!
(3) This is actually harder than I thought. We don't have access to NumberControl's titleNode from outside the type, so I can't toggle visibility of dragObjectDisplay based on it. I'll have to keep thinking about it.
@arouinfar please review. How important is (3)?
Listening to dragCoefficientNumberControl.titleNode.visibleProperty
isn't necessary. However, it'd be really nice to be able to hide the dragObjectDisplay. Could it be separately instrumented?
Instrumented above. We now have projectileMotion.dragScreen.view.projectileControlPanel.dragObjectDisplay.visibleProperty
Looks good in master, thanks @zepumph.
For #244
phScale.microScreen.view.beakerControlPanel.separator
for an example in action. When there multiple separators in a panel call themseparator1
andseparator2
.projectileMotion.vectorsScreen.view.projectileControlPanel
, instrument the "Cannonball" title astitleNode
withvisibleProperty
andtextProperty
children. The cannonball icon does not need to be separately instrumented, but its visibility should listen totitleNode.visibleProperty
.projectileMotion.dragScreen.view.projectileControlPanel.dragCoefficientNumberControl.titleNode.visibleProperty
is false.