- Messages
- 468
- Country

I know I've seen a post by Fr. Bill which covered my current issue but deep searches (here and at FFDS) haven't brought it to the surface (probably due to my incorrect search terms) so I will explain what I am trying to do in the hope that someone has an answer.
I have two sets of parts that I want to be able to swap out based on a mouse click. The idea is much like Bill's excellent 'show/hide yoke' code and I had intended to use that as my basis to work from but the difference in my case is that I want one set of parts visible and then replace them with a different set of parts when the user clicks on a suitable model part. i.e. Parts A, B, C are visible on initial start-up of the sim but click in a certain spot and Parts A, B, C disappear and are replaced by Parts X, Y, Z. Obviously the parts would need to reverse when the 'clickable object' is clicked again.
I know I can get Parts A, B, C to disappear using Bill's yoke code it's getting Parts X, Y, Z to appear in their place that has me stumped at the moment (probably because I am trying to make it more complicated than it needs to be).
Here are the parts of Bill's yoke code I was planning on using as the basis for my code:
Can anyone suggest what I need to add to make my idea work (i.e show Parts X, Y, Z when Parts A, B, C hide)?
I have two sets of parts that I want to be able to swap out based on a mouse click. The idea is much like Bill's excellent 'show/hide yoke' code and I had intended to use that as my basis to work from but the difference in my case is that I want one set of parts visible and then replace them with a different set of parts when the user clicks on a suitable model part. i.e. Parts A, B, C are visible on initial start-up of the sim but click in a certain spot and Parts A, B, C disappear and are replaced by Parts X, Y, Z. Obviously the parts would need to reverse when the 'clickable object' is clicked again.
I know I can get Parts A, B, C to disappear using Bill's yoke code it's getting Parts X, Y, Z to appear in their place that has me stumped at the moment (probably because I am trying to make it more complicated than it needs to be).
Here are the parts of Bill's yoke code I was planning on using as the basis for my code:
Code:
<Animation name="hide_pilots_yoke" guid="54647385-cff7-679c-a657-9b9cd33e4f12" length="100" type="Sim" typeParam2="hide_pilots_yoke" typeParam="AutoPlay" />
<Animation name="yoke_pilot" guid="54577386-cff7-679c-a658-ab9cd33e4f13" length="100" type="Sim" typeParam2="yoke_pilot" typeParam="AutoPlay" />
<!-- END Custom Animations -->
<!-- Citation II XML Code -->
<PartInfo>
<Name>hide_pilots_yoke</Name>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Hide Pilot's Yoke</TooltipText>
<CallbackCode>
(L:YokePilot,bool) ! (>L:YokePilot,bool)
</CallbackCode>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>yoke_pilot</Name>
<Visibility>
<Parameter>
<Code>(L:YokePilot,bool) 0 > if{ 0 } els{ 1 }</Code>
</Parameter>
</Visibility>
</PartInfo>
Can anyone suggest what I need to add to make my idea work (i.e show Parts X, Y, Z when Parts A, B, C hide)?


