Closed arouinfar closed 3 years ago
I'm no longer bothered by this issue. Clients using Studio to customize the sim should simply drag the tool out of the toolbox before launching. The tools are stateful and can be returned to the toolbox without any issue. If a client wants to instead use the API, they should communicate with the tool's isActivtyProperty
, such as model.dataProbe.isActiveProperty
.
For #244
Setting
view.dataProbeNode.visibleProperty
orview.measuringTapeNode.visibleProperty
to true will make the tool appear in the play area. The icon will still appear in the toolbox unlessview.toolboxPanel.dataProbeIconNode.visibleProperty
orview.toolboxPanel.measuringTapeIconNode.visibleProperty
is set to false. On the surface, this seems fine, but things get weird if you try to return either tool to the toolbox.For example
view.dataProbeNode.visibleProperty
to true and the correspondingview.toolboxPanel.dataProbeIconNode.visibleProperty
to false.This feels pretty weird, so let's discuss at design meeting.