Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Clickable and Visible in one object

Featured Replies

Is there any way to have the MouseRect on the object that I am wanting to make dissappear ?I've seen that with other models, where clicking on the Co-Pilot makes the co-pilot dissapear, but if I read the Object Properties, it seems that the object can not have more then ONE user defined line, so I can't have visibility and clickablity ???Do I just have to put it close, like possibly the seat (that's a big box).

  • Moderator
Is there any way to have the MouseRect on the object that I am wanting to make dissappear ?I've seen that with other models, where clicking on the Co-Pilot makes the co-pilot dissapear, but if I read the Object Properties, it seems that the object can not have more then ONE user defined line, so I can't have visibility and clickablity ???Do I just have to put it close, like possibly the seat (that's a big box).
You can easily accomplish that, but to what end? Once you hid the object, how would you unhide it again?"Visibility" and the "Mouse Rectangle" are defined in two sections of an XML script. Use the Attach Tool to add both a "Visible" condition and a "Mouse" action to the same object!To "hide/unhide" a yoke for example, I put the "MouseRectangle" action on some part near the yoke, and tag the yoke itself with the "Visibility" condition.
<Animation name="hide_pilots_yoke" guid="54647385-cff7-679c-a657-9b9cd33e4f12" length="100" type="Sim" typeParam2="hide_pilots_yoke" typeParam="AutoPlay" />  <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>

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author

I see what you mean. I was trying to get my head around whether the object to be hidden was either invisible or gone, so it seems it is gone for the time being, therefore un-interactable.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.