View Full Version : Large tooltip font problem. With screenshots!
CurtisTheGreat
12-04-2004, 11:57 PM
I've ran a search here and it seems a lot of people have been having problems with this... but the people who actually know how to fix it are having trouble understanding what we are trying to say. That's what I am reading anyhow... but then again, I'm not too bright sometimes. ;)
So... here is my problem, in screenshot form. As you can see, the text is WAY too large and I need to make it smaller. Everywhere else the text seems to be fine... only these two locations.
http://www.fischerfam.net/images/WoW/cosmosProblem1.jpg
http://www.fischerfam.net/images/WoW/cosmosProblem2.jpg
I am running in 1280x1024.
Help! This is VERY annoying!
CurtisTheGreat
12-05-2004, 05:35 PM
Shameless bump. :D
Sir.Bender
12-05-2004, 06:28 PM
Sarf isn't here for the weekend, so you will most likely have to wait unitl tomorrow ;) (because I can't answer it)
DoctorVanGogh
12-06-2004, 01:37 AM
There's actually a third location where the tooltip is too large: ItemsBuffs (sharp stone/ shaman buffs) will also have a tooltip with a regular size.
I think Sarf if aware of the issue but it's rather a low priority thing ...
http://www.cosmosui.org/forums/viewtopic.php?p=5194
But keep bugging him - this sounds like a 2 line fix, if you look at the right place (I'd bet my money on a wrong font inheritance in one of the Cosmos xml files defining the tooltips)
CurtisTheGreat
12-06-2004, 02:49 PM
I don't know enough about Cosmos to actually fix it or I would have done it myself. :D
Also, on an unrelated question: You just run Cosmos***** to update cosmos to the newest version, correct?
Hmm... I don't have this issue, but I run in 1024x768.
Could you try it out in a still higher resolution?
(also see if the problem is there with the old buff view)
I run in 1024x768 because it's the limit of my computer... :(
Sarf
---
All computers wait at the same speed.
DoctorVanGogh
12-06-2004, 09:06 PM
That is *exactly* the behavior I have constantly been observing with any CosmosTooltip (I ran resolutions 1280x1024 or 1600x1200 both with a ui scale of <1.0).
Any Cosmos created Tooltip: clock, questminion, moobuff, itembuff is way too large. Everything that inherits from 'CosmosTooltip' has this error.
I've stuck my nose into the xml files (anyone knows how far blua is along?) and noticed something strange:
The 'GameTooltip' Template is built like this:
+--------------------------------+
| <headerLeft> <headerRight> |
| <line2Left> <line2Right> |
... ...
| <line30Left> <line30Right> |
+--------------------------------+
so far I've checked the code for the clock Tooltip and it only calls
CosmosTooltip:SetText(text)
Since I don't really know the wow api too well I can only guess, but doesn't this just set the 'text' property of the container window (aka tooltip) itself (which maybe inherits from a regular textsize and/or does not scale properly)? Wouldn't it be much more prudent to call
CosmosTooltip:$parentTextLeft2:SetText(text)
I'm probably wrong on the member calling syntax, but you should get the idea... (compare sea.wow.tooltip) If you want to do some nice things you could pad that with rtl checks, better line distribution: map lines 1-29 to parentTextLeft2-parentTextLeft30 and even implement a header (line1)
I noticed that CosmosButtons implements a similar style:
...
function CosmosButton_OnEnter()
...
CosmosTooltip:SetText(value[CSM_LONGDESCRIPTION], 1.0, 1.0, 1.0);
...
end
...
MooBuff, ItemBuffs both just change the owner of the Tooltip (they don't actively change any text), so they must be facing another bug. Does changing the owner of a window by calling
CosmosTooltip:SetOwner(something)
correctly inherit the owner's scale or might this be reset to 1.0? This thread (http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=5017&tmp=1#post5017) gives a hint about ui scaling/sizes in resolutions of 1280+.
Damn, I really wish WoW had already been released over here in europe, then I could at least try to get rid of those buggers myself :(
Try changing this:
<GameTooltip name="CosmosTooltip" frameStrata="TOOLTIP" hidden="true" inherits="GameTooltipTemplate">
into this:
<GameTooltip name="CosmosTooltip" frameStrata="TOOLTIP" hidden="true" parent="UIParent" inherits="GameTooltipTemplate">
in Cosmos\CosmosTooltip.xml
See if that makes a difference.
Sarf
---
The total sum of the world's IQ is constant. If the population is increasing, then intelligence is ...[/list]
Melcene
12-06-2004, 10:26 PM
The other place I've noticed the tooltip is huge is when you mouse over the clock. I run in 1280x1024.
Should that last suggestion from Sarf fix all tooltip sizes?
Sir.Bender
12-06-2004, 10:58 PM
Yes, it should fix all Cosmos Tooltips.
DoctorVanGogh
12-06-2004, 11:10 PM
Yes - if *that* is the reason for the too large tooltips it should fix everything - so someone with access to wow who can run in a resolution higher than 1024 go ahead and test it :)
I tried hacking the clock into the GlueXML files to find out if it'd work, not much success here :(
CurtisTheGreat
12-07-2004, 04:45 PM
I'll give this a shot tonight and let everyone know.
I am going to try it with a totally clean install of WoW/Cosmos since I need to format that machine tonight since DEP went bonkers with Cosmos last night and then my tinkering blew things up. :lol:
Once I have some results, I'll let you all know. I'm going to try it in 1152x864 and 1280x1024.
vBulletin® v3.8.0 Beta 1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.