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.

Adding an operand to a ToolTip ?

Featured Replies

I have this gauge xml code which is from the default RPM gauge: <Mouse> <Tooltip ID=("TOOLTIPTEXT_ENG2_PROP_RPM") > </Mouse>I tried adding the following 5/ </Tooltip, based on some examples, but it broke the code: <Mouse> <Tooltip ID=("TOOLTIPTEXT_ENG2_PROP_RPM") 5/ </Tooltip> </Mouse>What I want is the for the ToolTip to readout the actual number divided by 5 (i.e. 2000 rpm shows as 400 rpm)(PS - I already adjusted the gauge to show this change by changing the numbers on the face of the dial)

  • Moderator
<Tooltip ID=("TOOLTIPTEXT_ENG2_PROP_RPM") 5/ </Tooltip>
That can never work... :( All <Tooltip ID> entries are special pre-set names and not something you can customize. Have you ever taken the time to open and read the FSX SDK? In the section named "Panels and Gauges SDK" in the "Tooltips" sub-section, you'll find a list of customized TooltipText entries, which show how to properly format dynamic tooltip entries:"Propeller 2 RPM (%((A:PROP2 RPM, rpm))%!d! RPM)"Now, you can't just use <TooltipText>"Propeller2 RPM"</TooltipText>, because like the <Tooltp ID> entries, these are "pre-set."What you can do however, is use the parts between and including the parenthesis as the basis for your own, customized Tooltip!You need to use the <Tooltip>...</Tooltip> tags for this, then simply cut/paste/edit the above like this:
<Tooltip>(%((A:PROP2 RPM, rpm) 5 /)%!d! RPM)</Tooltip>

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author

Have I read the SDK? I read the 2004 version, 2007 version, Accelleration version and ESP version. I'll quit my job as a meat packer soon as I understand it all... :( .Seriously, I understand some of it, but there seems to be a lot that is undisclosed. I do appreciate all your help and I know I probably pulled you away from more important projects, but I honestly never would have gotten to the end without your help.Actually I am 98.76% done. A few tweaks of the gauges and I am off to fly rather than progam.Thanks again.(PS the new tooltip works perfect)

  • Moderator

You are most welcome!Actually, answering your questions has been good "exercise" for me as well, since many times I've actually had to refresh my own memory on a subject, or -in some cases- "figure out the answer" for the first time!It's a very poor teacher who doesn't learn something new from his or her student's questions! :(

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

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.