Thread Tools Display Modes
03-25-12, 03:24 AM   #1
Ooglogput
A Kobold Labourer
AddOn Author - Click to view addons
Join Date: Mar 2012
Posts: 1
Tooltips and font spacing

So yeah, I've been messing around with my tooltip addon a lot lately, and I've got it looking perfect except for one detail: the font spacing. It's sadly not as simple as GameTooltipText:SetSpacing(X), which only sets the spacing separately for each string that wraps around, not for the whole tooltip. Is there any (preferably relatively easy) way to do this?
  Reply With Quote
03-25-12, 04:22 PM   #2
Talyrius
An Onyxian Warder
 
Talyrius's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 363
Something like this, perhaps:
lua Code:
  1. for i = 1, select("#", GameTooltip:GetRegions()) do
  2.     local region = select(i, GameTooltip:GetRegions())
  3.    
  4.     if region:GetObjectType() == "FontString" then
  5.         -- region:SetSpacing()
  6.     end
  7. end
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Tooltips and font spacing


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off