April 30, 201016 yr 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)
May 1, 201016 yr 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
May 1, 201016 yr 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)
May 1, 201016 yr 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