Resource Icon Tooltips

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Post Reply
Message
Author
User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Resource Icon Tooltips

#1 Post by Geoff the Medio »

I've noticed something strange, and can't figure out what could be causing it, so I though I'd ask if it's just me...

If you mouse over the research and production totals at the top of the screen, do you get tooltips when mousing over anywhere on the icon or text, or just on the icon?

If you mouse over the ships total, population census, or empire detection indicators at the top of the screen, does the same thing happen as with the research and production icons?

For some reason, I only get tooltips while mousing over the icon for research and production, but get tooltips for the icon or text for the other top-of-screen icons. I've looked through code and can't see any reason why this should be different. Anyone have any idea why it would or could be given the code setting it all up?

User avatar
Dilvish
AI Lead and Programmer Emeritus
Posts: 4768
Joined: Sat Sep 22, 2012 6:25 pm

Re: Resource Icon Tooltips

#2 Post by Dilvish »

I get the same behavior. I expect it's because the ones that only give a tooltip for the icon are instantiated with width ICON_WIDTH, whereas the ones that also give the tooltip for the text are instantiated with width ICON_DUAL_WIDTH.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Resource Icon Tooltips

#3 Post by Geoff the Medio »

That was it.

Post Reply