When hovering my mouse cursor over a button, the tooltip appears normally on top of the button. When clicking, though, the tooltip appears at the top left corner of the screen. Any idea what could be wrong?
Is the tooltips CSS based? It’s possible that the buttons aren’t grouped properly so the position
property of the tooltip is affected by an onClick
event?!
The tooltips are all default Asobo tooltips. It is a consistent problem across the entire airplane and omly this airplane.
I have this issue when using the Remove Blue Highlights mod (Makes changes to Interactions.xml - Even though this probably isn’t it since it’s isolated to just a single aircraft). If not that, maybe check the part scale and origin - something I seem to remember from doing some beta testing.
Edit: Though, on further thought, that doesn’t make sense either if it’s every animated part doing it. Still worth checking though.
It is scaling errors indeed.
I just fixed all my scaling errors, some switches are fine, for others the problem is still there. I’m out of ideas…
Update on this one:
On a lot of switches, if the PART_ID doesn’t match the NODE_ID then the tooltip will appear at the top left. There are also a couple of cases where they match and the tooltip still appears in the wrong spot.
It remains weird.
I found the root of the issue. In my code I had a template containing all of the switches, which I called as a single template in interior.xml.
Inside that template, I defined this:
<HIGHLIGHT_NODE_ID>True</HIGHLIGHT_NODE_ID>
This overwrote all HIGHLIGHT parameters for these buttons, leading to invalid values and caused the tooltips to appear at the top left corner of the screen. Consider the issue solved.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.